Hello,
While creating new Data Entity for my custom table, I keep getting the error : "Natural key was not found". As per my understanding is in the table it supposed to have unique key, or it's better if we have primary key as the index, however I already set this key.
So in my Index file which is a collection of fields, is set to Allow duplicates to No. And in the table I put this index as Primary Key.
Also actually, although not too sure, I put this index key as Alternate key. The reason is only because it is one of the rule if I'm checking through think link:
Further more is this table is still empty.
Anyone know what is the problem ? And what actually the requirement to meet this Natural Key ?
Thanks,
Please do a build and sync of the model from the menus and try creating again.
Also confirm that you are selecting correct table in data entity creation wizard.
Thanks,
Girish S.
Hi Girish,
Yes, as what I mentioned above, I created a new table, and added Index key (made of collection of fields but no RecId). I've set this key as my primary index in the table's property. Also in that Index key I set Not allow duplicates and put as Alternative key.
While this table still empty, create Data Entity using Wizard, but still there is an error "There is no natural key"
I read the thread, the learning docs, and some blogs couple of time actually but somehow I didn't get the correct means.
Thanks,
Hi Lars Volt,
What exactly is the issue?
Can you elaborate on this?
Also refer to the below thread which explains about the documentation you added.
Thanks,
Girish S.
Hi,
No, I didn't use RecId for this one.
Thanks,
Hi,
The problem may be that your table uses RecId as its primary index, and the Data Entity Wizard does not support tables with a RecId-based primary key.
If your table's architecture does not allow you to create a primary key, you can try this solution:
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156