Error deleting property from top most document type
I've been working on a new install of umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)for about a day now.
I have created a document type called 'Master' and some others that inherit from it.
In the Master document type I've got some properties in a new tab called 'Featured' that will be inherited by the child document types.
I've created some content items already and although I these items have the properties from the Master document type, I've not actually populated them with anythng yet.
I decided that I didn't want one of properties in the top most document type Master so I deleted it only to see the following error.
I'm sure I've done this before in a previous version of Umbraco without any problem.
Any suggestions?
Thanks.
The DELETE statement conflicted with the REFERENCE
constraint "FK_cmsPropertyData_cmsPropertyType". The conflict occurred
in database "www_eypdas_org_uk", table "dbo.cmsPropertyData", column
'propertytypeid'. 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:
The DELETE statement conflicted with the REFERENCE constraint
"FK_cmsPropertyData_cmsPropertyType". The conflict occurred in database
"www_eypdas_org_uk", table "dbo.cmsPropertyData", column
'propertytypeid'. 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've looked at the cmsProprtyType table, identified the ID of the property I'm trying to deleted and checked the associated cmsPropertyData records.
Most of the dataInt, dataDate, dataNvarchar, dataNtext values were NULL, some were not NULL but empty so I've changed those to be NULL but I still get the same error.
Surely I shouldn't have to delete the records from the cmsPropertyData table for this property. This seems quite fundamental.
Error deleting property from top most document type
I've been working on a new install of umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)for about a day now.
I have created a document type called 'Master' and some others that inherit from it.
In the Master document type I've got some properties in a new tab called 'Featured' that will be inherited by the child document types.
I've created some content items already and although I these items have the properties from the Master document type, I've not actually populated them with anythng yet.
I decided that I didn't want one of properties in the top most document type Master so I deleted it only to see the following error.
I'm sure I've done this before in a previous version of Umbraco without any problem.
Any suggestions?
Thanks.
The DELETE statement conflicted with the REFERENCE constraint "FK_cmsPropertyData_cmsPropertyType". The conflict occurred in database "www_eypdas_org_uk", table "dbo.cmsPropertyData", column 'propertytypeid'.
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.The statement has been terminated.
Exception Details: System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_cmsPropertyData_cmsPropertyType". The conflict occurred in database "www_eypdas_org_uk", table "dbo.cmsPropertyData", column 'propertytypeid'.
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.
Stack Trace:
I've looked at the cmsProprtyType table, identified the ID of the property I'm trying to deleted and checked the associated cmsPropertyData records.
Most of the dataInt, dataDate, dataNvarchar, dataNtext values were NULL, some were not NULL but empty so I've changed those to be NULL but I still get the same error.
Surely I shouldn't have to delete the records from the cmsPropertyData table for this property. This seems quite fundamental.
is working on a reply...