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

Error while creating the Purchase Journal through ODATA and SOAP in Business Central

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I am getting the below error while creating the Purchase Journal through ODATA.
{"error":{"code":"Internal_EntityWithSameKeyExists","message":"The record in table Gen. Journal Line already exists. Identification fields and values: Journal Template Name='PURCHASES',Journal Batch Name='BATCH-001',Line No.='10000'  CorrelationId:  91985e96-afcc-4617-9e08-e200c6328317."}}


When i pass the' Line No' manually i got this error:
{"error":{"code":"BadRequest","message":"Control '<Vendor Name>' is read-only.  CorrelationId:  39a42379-6177-4cf0-9596-4b1ffa23a9ae."}}

and by using the SOAP service i can't pass the 'Line No' manually and i got this error:
The record in table Gen. Journal Line already exists. Identification fields and values: Journal Template Name='PURCHASES',Journal Batch Name='BATCH-001',Line No.='10000'


What can i do so i can create the purchase journal?

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,214 Super User 2026 Season 1 on at

    Created a custom API with line no. field editable and use that for passing line no.

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 2,029 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,226 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,201

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans