web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

New data entity - Natural key not found for table LedgerJournalTrans

(0) ShareShare
ReportReport
Posted on by 709

Hi guys,

I need to create custom data entity with the source is LedgerJournalTrans. However there is an error saying "Natural key for table LedgerJournalTable was not found".

Upon looking for the same issue, found few topics discussed this and the solution is to duplicate any existing data entity then just delete its data source and field then replace it with LedgerJournalTrans.

While I've done so, how to have the staging table for my new entity then ? 

I tried to "Regenerate staging table" but it seems nothing happened. Should I duplicate again the staging table from other entity first, then use Update staging table instead ? I just afraid it will gone wrong.

Kindly advice,

Thanks.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    What is the staging name in the property

    if  its a standard table I dont think its possible this way, you need create extension and add fields manually.

    Considering that you are creating a new entity, you can create a new staging table for it.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    307,222 Super User 2026 Season 2 on at

    Hi ShaqAX,

    Usually, I create a new data entity with the name as I would like to have, e.g. MyLedgerJournalTransEntity. As table, for this entity, you can initially take a simple one, like CustGroup. When you finished the wizard, the object names are correct and then you can delete the table and rebuild the data entity with the LedgerJournalTrans table. Then re-generate the staging table.

    What is probably currently wrong in your attempt is that you did duplicate the entity, but not the staging table. The name of the staging table is stored in the property DataManagementStagingTable. When using the wizard, it will not only create a new staging table, but it will also create required privileges.

  • Verified answer
    huijij Profile Picture
    19,813 on at

    Hi ShaqAX,

    The approach you mentioned also required to manually create the staging table and security privileges.

    Will the following steps be much easier?

    https://stoneridgesoftware.com/dealing-with-the-the-natural-key-for-the-table-was-not-found-error-in-the-dynamics-365-data-entity-wizard/

    regards

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 475 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 399 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 374

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans