web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

The record in table Document Node already exists. Identification fields and values: Entry No.='XXXXX'

(0) ShareShare
ReportReport
Posted on by 4,009

Hi All,

I have created a function which automatically posts the Sales Order through the OOB Sales-Post codeunit.
I get the following error The record in table Document Node already exists. Identification fields and values: Entry No.='XXXXX'
However when I try manually posting the Sales Order, the issue does not reproduce.
Also, the error is random on posting of Sales Order through the function.

Kindly advise on the error so I know where I can debug.

Thanks,
Olister

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

  • Olister Rumao Profile Picture
    4,009 on at

    Hi Marco,

    Thank you for the reply.
    I haven't been able to recreate this issue through UI or even through debugging.
    Also, I don't exact know where to look for this error message.

    Kindly advise.

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    104,157 Super User 2026 Season 2 on at

    Hi, If you are using On-Premises, you can set "breakOnNext": "Background" in launch.json file.

    More details: 

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-attach-debug-next

    pastedimage1655167107984v3.png

    pastedimage1655196219791v1.png

    Hope this helps.

    Thanks

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 360 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 201 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans