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

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • 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
    300,915 Super User 2025 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,811 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans