Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

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

Like (0) ShareShare
ReportReport
Posted on 2 Jun 2022 03:40:44 by 3,957

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
    YUN ZHU Profile Picture
    79,980 Super User 2025 Season 1 on 14 Jun 2022 at 00:39:04
    RE: The record in table Document Node already exists. Identification fields and values: Entry No.='XXXXX'

    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

  • Olister Rumao Profile Picture
    3,957 on 13 Jun 2022 at 07:22:39
    RE: The record in table Document Node already exists. Identification fields and values: Entry No.='XXXXX'

    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
    Marco Mels Profile Picture
    on 10 Jun 2022 at 06:59:21
    RE: The record in table Document Node already exists. Identification fields and values: Entry No.='XXXXX'

    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.

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... 293,342 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started