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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Data integration - transmitting a Journal Header and its Lines

(1) ShareShare
ReportReport
Posted on by 24
I have experimented with both DMF (data management framework) as well as the the OData API, in an attempt to import a Journal Header, and its lines, atomically (single transaction).
 
OData API attempts
- /data/LedgerJournalHeaders allows me to post a header only. Attempting to include its "Lines" in the same call results in a "cannot patch " error for the lines I am attempting to send. 
- Tried to use the /data/batch endpoint to leverage OData's support for batch operations. However you cannot send a header and its lines in the same change set, because the payload for a line (/data/LedgerJournalLines) has a property that has to refer to the ID of the header. This means the header must be created first to get its ID, and only then can you create the lines. This is in line with how the "General journals" UI works in Finance.
 
DMF Attempts
There is a data entity called "General journal" that contains both the header level and line level in a single entity. This seems to be the recommended entity to use for batch import scenarios. I created a data project in Finance, and exported an sample package which contained the csv, and the manifest files. I then edited the CSV file to contain a journal with 2 lines, the first line I used an invalid account. I imported this package into dynamics finance. It picked up an error for the invalid line as i'd expect, however the valid line was imported. The end result is a partial journal in dynamics, with one line - this is what I am trying to prevent.
 
Am I missing something? 
 
 
 
I have the same question (0)
  • Anthony Blake Profile Picture
    2,823 Super User 2025 Season 2 on at
    Data integration - transmitting a Journal Header and its Lines
    Hi Darrell
     
    For the DMF run, do you have Set based processing enabled at General Journal entity level?
     
     
    Anthony
  • Darrell Tunnell Profile Picture
    24 on at
    Data integration - transmitting a Journal Header and its Lines
    Hi Anthony,
    Yes set based processing is enabled, it seems to be enabled by default for this entity.
  • Anthony Blake Profile Picture
    2,823 Super User 2025 Season 2 on at
    Data integration - transmitting a Journal Header and its Lines
    Thanks Darrell,
    Checked and unfortunately to enable grouped failures we needed to customise. Other option is manage by correcting and pushing through in DMF. I think they are the two options. 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 835 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans