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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Errors posting to General Journals via API

(0) ShareShare
ReportReport
Posted on by 10

We are getting an error when posting to General Journals via the API. 

  1. Failed to create debit record in general journal:error - {code=Internal_EntityWithSameKeyExists, message=The record in table Gen. Journal Line already exists. Identification fields and values: Journal Template Name='GENERAL',Journal Batch Name='XXXX',Line No.='70000' CorrelationId: b1325451-1e28-4066-b05f-990972cc339d.}

When posting that Journal once pushed to BC, we are getting more errors.

  1. 'There is a gap in the number series'
  2. 'Select a Dimension Value Code for the Dimension Code X for G/L Account XXXX'
  3. 'Document number is out of balance by XXXX'

Are these errors in relation to specific features/configurations within BC? Not one we have come across before. 

Any advice or assistance would be appreciated.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    all the errors you mentioned here are standard one, you need mentioned each field defined by error must be defined in your body request.

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 447 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 366 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans