Issue
Upon importing a solution containing an elastic table, the following error is thrown:
Solution “xyz” failed to import: The schema name KeyForNoSqlEntityWithPKPartitionId for type EntityKey is invalid or missing.Custom attribute, entity, entitykey, option set and relationship names must start with a valid customization prefix.The prefix for a solution component should match the prefix that is specified for the publisher of the solution.
Investigation
I extracted the customizations.xml
file, and then prefixed the key with the publisher’s prefix. That didn’t work, complaining that the key already existed!
Solution
As a practical workaround, consider the following steps until a permanent fix is provided by Microsoft:
- Extract the
customizations.xml
file from the solution ZIP file - Find the key
KeyForNoSqlEntityWithPKPartitionId
and remove the whole XML entry (shown below) - Save the file
- Add to the solution ZIP file again
- Import
Dataverse creates the key anyway, although it’s missing from the solution.
Table of Contents