Using v7.3.7 I'm getting the following error when attempting to copy a document type.
Can anyone give me a walkthrough on how to correct this. I'm like a bull in a china shop when it comes to DB's
Cannot insert duplicate key row in object 'dbo.cmsPropertyType' with
unique index 'IX_cmsPropertyTypeUniqueID'. The duplicate key value is
(834ae868-b4a6-4efe-bf5a-b8457d99d40d). The statement has been
terminated.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Cannot insert
duplicate key row in object 'dbo.cmsPropertyType' with unique index
'IX_cmsPropertyTypeUniqueID'. The duplicate key value is
(834ae868-b4a6-4efe-bf5a-b8457d99d40d). The statement has been
terminated.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I'm working with 7.4 and the copy function is completely gone. I read the issue, does that mean it wouldn't be possible anymore to copy? This would be a big issue for me.
For anyone else hitting this in 7.3.x then one way around is to use the Export / Import Document type feature.
Right-click the doc type you wish to copy and select Export Document Type. This creates a .udt file that is essentially an XML representation of your doc type. Open it in an editor and change the alias and name in <Info> section (and any other bits you wish to be different) and then save.
Then right-click the root Doc Types folder and select Import Document Type and choose your file. Reload nodes and you should be good.
Cannot Copy Document Type
Using v7.3.7 I'm getting the following error when attempting to copy a document type.
Can anyone give me a walkthrough on how to correct this. I'm like a bull in a china shop when it comes to DB's
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
That would be http://issues.umbraco.org/issue/U4-7641.
Good to know Stephen thanks!
I'm working with 7.4 and the copy function is completely gone. I read the issue, does that mean it wouldn't be possible anymore to copy? This would be a big issue for me.
Copy is to be back, prob in 7.4.2.
Nice, thx for the reply
For anyone else hitting this in 7.3.x then one way around is to use the Export / Import Document type feature.
Right-click the doc type you wish to copy and select Export Document Type. This creates a
.udt
file that is essentially an XML representation of your doc type. Open it in an editor and change the alias and name in<Info>
section (and any other bits you wish to be different) and then save.Then right-click the root Doc Types folder and select Import Document Type and choose your file. Reload nodes and you should be good.
Hi Dan, are there any issues with Export + Import?
I notice the udt's xml has ids in there, eg:
Do those ids have to be changed? Thanks
Looks like they get updated on import
is working on a reply...