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

I have the same question (0)
  • 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
    100,214 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 936 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 616 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans