AX / D365FO : Error : Natural key was not found for a custom table during entity creation

I am creating a new entity from a newly created custom table then i am getting an error ” Natural key  for the table TestEntityTable was not found”.

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

To solve I just need to create a new unique index and set :

  •  index property “Alternate Key = Yes” and Allow Duplicate = No

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s