Skip to main content

Notifications

Announcements

No record found.

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

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 76

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 22,294 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

  • Shakir Shabbir Profile Picture
    Shakir Shabbir 76 on at
    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 22,294 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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,876 Super User

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,425 Super User

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans