Skip to main content

Notifications

Announcements

No record found.

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 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
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    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
    Olister Rumao 3,957 on at
    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
    Marco Mels on at
    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans