Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Gen Journal Lines won't delete after posting

(0) ShareShare
ReportReport
Posted on by

Hi, 

our company has a customized version of the Gen. Journals of Business Central. 

If we post lines, we get the entries in the Gen. Ledger Entry - However the Journal Lines won't dissapear (delete) and the notification says "There is nothing to post" (Text002)

We can't really find the right lines of codes or codeunits for this problem. 

Can anybody help? Thanks! 

Greets, 

Derek

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Gen Journal Lines won't delete after posting

    Great, and thanks for the information.

  • Community Member Profile Picture
    on at
    RE: Gen Journal Lines won't delete after posting

    We found the Issue :) We had some Problems with the RegNo.

    Thanks for your help everybody.

    Regards,

    Derek

  • Suggested answer
    YUN ZHU Profile Picture
    81,798 Super User 2025 Season 1 on at
    RE: Gen Journal Lines won't delete after posting

    Hi, Maybe you can check the function below.

    codeunit 13 "Gen. Jnl.-Post Batch" -> local procedure ProcessLines(var GenJnlLine: Record "Gen. Journal Line") -> UpdateAndDeleteLines(GenJnlLine);
    pastedimage1655969264283v3.png
    pastedimage1655969181628v1.png
    pastedimage1655969239765v2.png
    Hope this helps.
    Thanks.
    ZHU
  • Community Member Profile Picture
    on at
    RE: Gen Journal Lines won't delete after posting

    Hi Guys,

    thanks for your answers. We already spent a lot of hours debugging the code, in order to find out where micorosoft actually performs the delete operation. Do you know which prodecure and codeunit this is done?

    We already checked your artikel regarding the "New Posted General Page". We can double check depenendcies.

    The next step for us would be writing a customized delete function, if we can't find the issue. We would really like to avoid that.

    Regards,

    Derek

  • Suggested answer
    YUN ZHU Profile Picture
    81,798 Super User 2025 Season 1 on at
    RE: Gen Journal Lines won't delete after posting

    Hi, this seems to be a problem with customization, if you can't find the problem by looking at the code, you can try debugging.

    Also, I don't know if your customization is related to the feature below, but I hope it can give you some hints.

    New Posted General Journal page in Dynamics 365 Business Central 2020 Release Wave 2

    https://yzhums.com/1335/

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Gen Journal Lines won't delete after posting

    Are you sure that you have not used a recurring journal?

    If so that is expected behavior.

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Gen Journal Lines won't delete after posting

    Hi,

    Generally if you post the Gen. Journals lines it automatically deletes all the lines after posting,, Can you please check if there is any customization done or any extension installed?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans