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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse table key fa...
Power Apps
Unanswered

Dataverse table key failed in managed solution

(0) ShareShare
ReportReport
Posted on by 195

I have a managed solution which is in our production environment. We have Dataflows which pulls data into a table from MSSQL and somehow created duplicates in one of the key fields and now that key is showing failed. Also the Dataflow is failing to refresh/run aswell.

 

See screenshot of the failed key below:

 

bfausti_0-1665023193045.png

 

Also see the error message comig from the Dataflow:

 

gbca_project table's key gbca_uniqueprojectnumber could not be created. Please delete the existing key and create new key for the table and try again. Additional information: The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.gbca_projectBase' and the index name 'ndx_for_entitykey_gbca_UniqueProjectNumber'. The duplicate key value is <redacted>.

 

I have since cleared the duplicate records in the managed solution but the error still shows in both the Key and the Dataflow. As it is a managed solution I cannot delete the key and recreate it.

 

Interestingly, in the Dev environment where the unmanaged solution sits, the keys are fine and the Dataflow runs successfully.

 

Any ideas how to fix this issue so that the keys will show active in the managed solution, I don't think re-importing the solution in the prod environment will help in this situation as nothing has changed structurally right?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at
  • bfausti Profile Picture
    195 on at

    Thank you for your response. 

    However, when I try to run Solution 2 I get the following error:

    bfausti_0-1665026192837.png

     

    I have no idea what object dbo.gbca_projectBase is, this is not any table or field that exists in the solution. Do you know if this could be referring to another type of object?

  • Verified answer
    bfausti Profile Picture
    195 on at

    I was able to resolve the issue via XRMToolbox using an alternate key manager. I was able to re-active the key from there:

    bfausti_0-1665030558473.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard