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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Not able to create CustTrans Data Entity

(0) ShareShare
ReportReport
Posted on by 87

Not-ableto-esit.pngHi Team,

I am not able to create data Entity for standard table "CustTrans" because getting this error" The natural key for the table CustTrans 1605677364545.jpegwas not found". Below are my findings and they are not working:

1. Created the copy of the table and added a field LineNum, and created index with the property allow duplicate- No and Alternate Key - Yes. Then i tried to set this index in the primary key of CustTrans . But system is not allowing me to update the primary key. So i left this approach.

2. Tried to create the duplicate of a standard entity, and tried to change the data source to CustTrans . But my concern is that, what if user want the field from other datasource. As we know that we have 19 to 20 relation on CustTrans table.

If anyone has created the dataentity for custtrans, please help me out.

Regards

Neeraj

I have the same question (0)
  • NeerajSingh Profile Picture
    87 on at

    Not able to crate CustTrans Data entity

  • WillWU Profile Picture
    22,363 on at

    Hi NeerajSingh,

    The custtrans table uses RecId as its primary index, and the Data Entity Wizard doesn’t support tables with a RecId-based primary key.

    Please try to duplicate the custtrans table and create a new primary index , then create your the data entity based on your new table.

    See:stoneridgesoftware.com/.../

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,583 Super User 2026 Season 1 on at

    Hi Neeraj,

    Your second option is the best start here. You can build up the data entity with data from other tables by extending the data entity data source or virtual columns. Note that you can only export data as there is no natural key on this table, but I do assume this is your purpose here.

  • NeerajSingh Profile Picture
    87 on at

    Yes Andre. I only have to expose the CustTrans data from FinOps to Azure SQL data base. From there the powerBi team will generate the report.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Just copy any existing data entity. Use some simple entity that doesn't have code or many data sources.

    Then change the data source of that new data entity to CustTrans. Set RecId as the entity key.

    Then copy the staging table of the existing data entity. Point your new entity to the new staging table. And finally regenerate the staging table.

    Remember to set "IsReadOnly" property on the entity to Yes!

  • NeerajSingh Profile Picture
    87 on at

    Hi Will,

    When I tried to regenerate the staging table, on right click. I am getting this error.

    "There was an error in generation staging table"

    Regards

    Neeraj

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    There must be some issue in the entity or staging table, try to check all the details. And if you need help, please share the details. Thanks!

  • NeerajSingh Profile Picture
    87 on at

    Hi Nikolaos,

    RecID field is not available to set as the entity key.

    Regards

    Neeraj

  • WillWU Profile Picture
    22,363 on at

    Hi NeerajSingh,

    I am able to create data entity based on custtrans by duplicating the standard table.

    Please show your steps. Did you add your new field in the custtranscopy? You could try to rename of your staging table.

  • WillWU Profile Picture
    22,363 on at

    Hi NeeraSingh,

    Just create the copy and create a new index(index1 in my case) , then set the index as the primary key.

    pastedimage1605688357541v1.png

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 635 Super User 2026 Season 1

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 635 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 547

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans