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

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,794 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

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 March 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,947 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,120 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 628 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans