Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

The dimension set line already exists - when sending journal lines with refs to dimension set lines

(1) ShareShare
ReportReport
Posted on by 7
Hi all.

I have a third party application connecting to the public cloud Business Central API. 

We are sending journal lines to the $batch endpoint. For most customers it runs fine, but we have a customer which gets this error:
 
{/responses/:[{/id/:null,/status/:400,/headers/:{/content-type/:/application/json/,/content-length/:/240/}, /body/ :{/error/:{/code/:/Application_DialogException/,/message/:/The dimension set line already exists. Check existing dimension set lines and the default dimension set lines on the parent. CorrelationId: 669fee9a-9440-4a97-ba6f-77dd185bxxxx./}}}]}

Most of the data for the dimension set lines looks like this: 
/dimensionSetLines/:[{/code/:/DEP/,/valueCode/:/SALES/}]

I cant find any documentation about this error, and I have a hard time trying to reproduce.

Can somebody enlighten me?
  • Verified answer
    Community member Profile Picture
    7 on at
    The dimension set line already exists - when sending journal lines with refs to dimension set lines
    It seems to be because of default dimension(s) being added to the journal line before manually adding the dimension set lines. It works when not adding the dimension set lines.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans