I try to delete a property, but the server returns this error below. Has someone had this before?
Kind regards Damiaan
Server Error in '/' Application.
The DELETE statement conflicted with the REFERENCE
constraint "FK_cmsPropertyData_cmsPropertyType". The conflict occurred
in database "wdb_gs2", table "gs_db_user.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
"wdb_gs2", table "gs_db_user.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.
Thanks for the response. However, i just found out that this is not the real problem.
To start of, it's version 4.7.1.
My collegea tried to install a google map package. Which failed to install (they told me). If you try to open a content node containing this property, you get the error below.
I also found out that not all nodes are shown in the tree. I'll digg a bit further and keep you posted.
Kind regards Damiaan
Server Error in '/' Application.
Value cannot be null. Parameter name: Property googleMapKantoor (89) on Content Type Kantoor could not be retrieved for Document 1174 on Tab Page kantoor. To fix this problem, delete the property and recreate it.
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.ArgumentNullException: Value cannot be null. Parameter name: Property googleMapKantoor (89) on Content Type Kantoor could not be retrieved for Document 1174 on Tab Page kantoor. To fix this problem, delete the property and recreate it.
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:
[ArgumentNullException: Value cannot be null.
Parameter name: Property googleMapKantoor (89) on Content Type Kantoor could not be retrieved for Document 1174 on Tab Page kantoor. To fix this problem, delete the property and recreate it.]
umbraco.controls.ContentControl.CreateChildControls() +1760
System.Web.UI.Control.EnsureChildControls() +102
umbraco.controls.ContentControl.OnInit(EventArgs e) +83
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
System.Web.UI.ControlCollection.Add(Control child) +79
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1412
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
I found the problem. There was a node not displaying in the content tree.
Select * FROM [cmsPropertyData] WHERE [propertytypeid] = 89 -- matches the propertyId mentioned in previous post. This returned one record: 1905 1199 (=nodeId) 794D73CD-EEAC-4417-B2DF-E3311933EE5E 89 NULL NULL NULL NULL
It exists in UmbracoNode table, but in cmsDocument, cmsContentVersion, cmsContentXml there is no record for node 1905
So I ran the following sql commands DELETE FROM [cmsPropertyData] WHERE contentNodeId = 1199 DELETE FROM cmscontent WHERE nodeid = 1199 DELETE FROM umbraconode WHERE id = 1199
this allowed me to delete the property from the back-end.
Hi, I upgraded a site from 6.0 something to 6.1.1 and I cannot delete the properties of the media types. The page seem to time out and refresh and I don't receive any error, the property is still there...
Is this the issue you had or was it something different? Has anyone had this issue I tried to describe?
delete property error
Hi,
I try to delete a property, but the server returns this error below. Has someone had this before?
Kind regards
Damiaan
Server Error in '/' Application.
The DELETE statement conflicted with the REFERENCE constraint "FK_cmsPropertyData_cmsPropertyType". The conflict occurred in database "wdb_gs2", table "gs_db_user.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 "wdb_gs2", table "gs_db_user.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:
What version of Umbraco are you using? More people are having this problem but it should have been fixed: http://our.umbraco.org/forum/ourumb-dev-forum/bugs/10552-The-DELETE-statement-conflicted-with-the-REFERENCE-constraint-FK_cmsPropertyData_cmsPropertyType?p=1#comment52934. See this issue for more info: http://umbraco.codeplex.com/workitem/29007
Jeroen
Hi Jeroen,
Thanks for the response. However, i just found out that this is not the real problem.
To start of, it's version 4.7.1.
My collegea tried to install a google map package. Which failed to install (they told me). If you try to open a content node containing this property, you get the error below.
I also found out that not all nodes are shown in the tree. I'll digg a bit further and keep you posted.
Kind regards
Damiaan
Server Error in '/' Application.
Value cannot be null.
Parameter name: Property googleMapKantoor (89) on Content Type Kantoor could not be retrieved for Document 1174 on Tab Page kantoor. To fix this problem, delete the property and recreate it.
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.ArgumentNullException: Value cannot be null.
Parameter name: Property googleMapKantoor (89) on Content Type Kantoor could not be retrieved for Document 1174 on Tab Page kantoor. To fix this problem, delete the property and recreate it.
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 found the problem. There was a node not displaying in the content tree.
Select * FROM [cmsPropertyData] WHERE [propertytypeid] = 89 -- matches the propertyId mentioned in previous post.
This returned one record: 1905 1199 (=nodeId) 794D73CD-EEAC-4417-B2DF-E3311933EE5E 89 NULL NULL NULL NULL
It exists in UmbracoNode table, but in cmsDocument, cmsContentVersion, cmsContentXml there is no record for node 1905
So I ran the following sql commands
DELETE FROM [cmsPropertyData] WHERE contentNodeId = 1199
DELETE FROM cmscontent WHERE nodeid = 1199
DELETE FROM umbraconode WHERE id = 1199
this allowed me to delete the property from the back-end.
Thanks a lot link to the other blog post!
Hi,
I upgraded a site from 6.0 something to 6.1.1 and I cannot delete the properties of the media types. The page seem to time out and refresh and I don't receive any error, the property is still there...
Is this the issue you had or was it something different? Has anyone had this issue I tried to describe?
Thanks
is working on a reply...