Import Form fails with foreign key constraint violation
Hello,
I've got a large form which I've developed locally and am looking to deploy to the production environment. I export it from Contour but when I try to re-import it I get the following error:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFPrevalues_UFFields". The conflict occurred in database "XYZ", table "dbo.UFFields", column 'Id'. The statement has been terminated.
The relevant bits from the stack trace are as follows:
I have the same error. I run Umbraco 4.11.3 with Contour 3.014 and the form was created on the same installation, exported for temporary backup, deleted in the UI, and then I tried to import it back in.
The form seems to be partially imported ok, but is cut off with the first field with conditions on it.
Any idea?
This is my complete errormsg:
Server Error in '/' Application.
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFFieldConditionRules_UFFields". The conflict occurred in database "xxx", table "dbo.UFFields", column 'Id'. 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 INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFFieldConditionRules_UFFields". The conflict occurred in database "xxx", table "dbo.UFFields", column 'Id'. 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.
Import Form fails with foreign key constraint violation
Hello,
I've got a large form which I've developed locally and am looking to deploy to the production environment. I export it from Contour but when I try to re-import it I get the following error:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFPrevalues_UFFields". The conflict occurred in database "XYZ", table "dbo.UFFields", column 'Id'.
The statement has been terminated.
The relevant bits from the stack trace are as follows:
Any ideas of how I may resolve this? The form has taken some time to put together so I'm reluctant to simply recreate it from scratch.
Many thanks,
Colin
Comment author was deleted
Hey Colin,
Which Contour version are you running?
I have the same error. I run Umbraco 4.11.3 with Contour 3.014 and the form was created on the same installation, exported for temporary backup, deleted in the UI, and then I tried to import it back in.
The form seems to be partially imported ok, but is cut off with the first field with conditions on it.
Any idea?
This is my complete errormsg:
Server Error in '/' Application.
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFFieldConditionRules_UFFields". The conflict occurred in database "xxx", table "dbo.UFFields", column 'Id'.
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 INSERT statement conflicted with the FOREIGN KEY constraint "FK_UFFieldConditionRules_UFFields". The conflict occurred in database "xxx", table "dbo.UFFields", column 'Id'.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18055
Comment author was deleted
Upgrade to latest version :) already fixed
is working on a reply...