web
You’re offline. This is a read only version of the page.
close
Skip to main content
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?
I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,227

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,866

#3
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans