web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,696 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?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,045 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
    YUN ZHU Profile Picture
    93,438 Super User 2025 Season 2 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

  • 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
    93,438 Super User 2025 Season 2 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

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

    Thanks for your help everybody.

    Regards,

    Derek

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

    Great, and thanks for the information.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,568

#2
Sumit Singh Profile Picture

Sumit Singh 2,536

#3
YUN ZHU Profile Picture

YUN ZHU 2,015 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans