-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v8: Error on Saving Document Type with new Group + Property (A duplicate value cannot be inserted into a unique index. [ Table name = cmsPropertyTypeGroup,Constraint name = PK_cmsPropertyTypeGroup ]) #11522
Comments
Interestingly, I was able to create the group & property on my Cloud Development environment, so possibly an SQLCE-only issue? However, it doesn't fix the problem since when I then pull the change to my local environment and attempt a local "Schema Deployment From Data Files", it fails with a similar error:
|
I was able to do a fresh local initialize of the database and was able to get the changes I made on the Development environment. Also, I tested adding a new group and property to an otherwise empty Doctype, and was able to do so successfully. All I can figure is that during the original update something didn't happen in the database internals which should have... |
I've just encountered this very issue, the following info may assist with a fix! After doing an upgrade, I couldn't add any new tabs to any doctypes. When I ran this SQL query against my SQL CE DB SELECT AUTOINC_NEXT
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'cmsPropertyTypeGroup'
AND COLUMN_NAME = 'id' I found that it returned a value of 92, but when I checked the I couldn't find a way to update the AUTOINC_NEXT value, so I ended up going through each of the doctypes which were using tabs with id's of 92 and above, and moved the properties off the suspect tabs onto another tab, and then resaved the doctype, repeating this process until the last entry in the cmsPropertyTypeGroup table was 91. Then I reversed the process, adding a new tab and moving the property back. And then I could add tabs again. 😄 |
Thanks for your info above, helped me solve my issue. |
Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8
8.17.0
Bug summary
I recently updated an Umbraco Cloud v8 Project to v8.17.0 (where the new "Tabs" UI was introduced). This is an existing project, and I am NOT using ANY Tabs - just the original Groups.
Working on my local copy of the site, I opened a Document Type which currently had no compositions, groups, or properties on it, and attempted to add a single Group with a single Property. On Save, I received the error: "A duplicate value cannot be inserted into a unique index. [ Table name = cmsPropertyTypeGroup,Constraint name = PK_cmsPropertyTypeGroup ]"
Specifics
Error Details
Versions
Umbraco Id
Umbraco 8.17.0
Deploy 4.3.0.0
Forms 8.7.6
Steps to reproduce
NOTE This might be an issue limited to an upgraded install with existing Document Types.
Expected result / actual result
I would expect the new group and property to save without any errors.
Possibly Related Issues
#11221
The text was updated successfully, but these errors were encountered: