Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / DMF data project impor...
Finance forum

DMF data project import fails with message "Cannot create a record in Ledger journal table (LedgerJournalTable). The record already exists."

(1) ShareShare
ReportReport
Posted on by

While trying to process import of general ledger entries (general journal), we got the following error on execution:

Cannot create a record in Ledger journal table (LedgerJournalTable).
The record already exists.

pastedimage1569905832519v1.png

We checked and did everything from status list on number sequence to clearing the staging table as well as synchronizing the database, but finally found the issue was related to data.

I am providing a sample (2 records) snapshot of data that we were trying to import:

  
    GL_MZKFAI
    
    5101400-66--
    Ledger
    0.000000
    PKR
    59.060000
    GL line 1
    GL_MZKFAI
    2019-09-30T00:00:00
    1
  
  
    GL_MZKFAI
    
    1074008---
    Ledger
    106.270000
    PKR
    0.000000
    GL line 2
    GL_MZKFAI
    2019-09-30T00:00:00
    1
  


And the issue was the field "Description" - The line description which should have been mapped to the field "Text" was mapped to the former field.

The field "Description" represents the journal (header) description and it should be the same throughout the file if the intention is to load all files into a single journal only.


Refer Best practices for importing vouchers by using the General journal entity for general guidelines regarding the general ledger (GL) or general journal import.

After the input file was corrected, we were successfully able to import the general ledger (GL) entries into D365 via "General journal" entity (LedgerJournalEntity) through DMF data management project.

  • MATTGUO Profile Picture
    MATTGUO on at
    RE: DMF data project import fails with message "Cannot create a record in Ledger journal table (LedgerJournalTable). The record already exists."

    Hello,

    How did you upload the XML code? Copy and paste?

    Please try to use insert code feature to upload it.

    2677.png

  • RE: DMF data project import fails with message "Cannot create a record in Ledger journal table (LedgerJournalTable). The record already exists."

    Thanks @MATTGUO - I will move it to blogs soon.

    If possible can you help me that why I am seeing the XML code not formatted properly as an XML?. Please see screenshot below:

    pastedimage1570033568753v1.png

  • MATTGUO Profile Picture
    MATTGUO on at
    RE: DMF data project import fails with message "Cannot create a record in Ledger journal table (LedgerJournalTable). The record already exists."

    Hi Shakir,

    Thanks for you sharing. Blog is a better place to share the documents/experiences: community.dynamics.com/.../b

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans