Hi,
I'm receiving the following error when trying to make changes to my default dataset model.
"Underlying Error{"batchRootActivityId":"26100d88-6567-4cba-8d34-b8f06ef60bdd","exceptionDataMessage":"An item with the same key has already been added."}"
This error first showed up after the following chain of events
- We started making relationships between existing tables in the model
- We realized we needed to change one of the column types in a model that already had an existing relationship (child table).
- Before deleteing the relationship (this is where I think things got messed up). We tried to drop the table and recreate it with the correct column type.
- The drop and create failed because of the existing relationship.
- We then went back into the model to delete the relationship and now this error occurs shows up whenever we try to do anything with the default dataset model. I think there's a ghost-duplicate of the table that got created in step 3.
- My thought processes was to use T-SQL to delete the relationship and after the issue: (Transaction failed because this DDL statement is not allowed inside a snapshot isolation transaction. Since metadata is not versioned, a metadata change can lead to inconsistency if mixed within snapshot isolation.) was resolved by adding SET TRANSACTION ISOLATION LEVEL READ COMMITTED before the ALTER TABLE ... DROP CONTRAINT. It deleted the relationship and then I was able to drop the table.
- So I then thought, I'm good and now in the clear. The table has been dropped. However, I'm still getting the error.
Has anyone else encountered this error before and been able to resolve it?
Thanks,
Cameron