Error:Data could not be saved. The INSERT statement conflicted with the FOREIGN KEY constraint, when saving a form that you are attempting to edit

Type: Blackbaud.AppFx.WebAPI.AppFxWebServiceException
Message: Data could not be saved. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_CUSTOMFORMRULEACTION_RULEACTIONFIELDID". The conflict occurred in database "6894_9c205c74-941b-4006-be4b-15bc97da63c6", table "dbo.CustomFormElement", column 'Guid'.
StackTrace: at Blackbaud.AppFx.WebAPI.DataFormServices.SaveData(AppFxWebServiceProvider provider, DataFormSaveRequest request) at Blackbaud.AppFx.WebAPI.DataFormServices.SaveData(AppFxWebServiceProvider provider, FormData formData) at Blackbaud.Web.Content.Core.Data.CustomForm.Save() at Blackbaud.Web.Content.Portal.CustomFormContentEditor.Save() at Blackbaud.Web.Content.Portal.CustomFormContentEditor.ServerValidate(ServerValidationInfo ValidationInfo) at Blackbaud.Web.Content.Portal.ModalTemplate6.CustomValidator1_ServerValidate(Object source, ServerValidateEventArgs args) at System.Web.UI.WebControls.CustomValidator.OnServerValidate(String value) at System.Web.UI.WebControls.BaseValidator.Validate() at System.Web.UI.Page.Validate(String validationGroup) at Blackbaud.Web.Content.Portal.BBPage.Validate(String validationGroup) at Blackbaud.Web.Content.Portal.BBPage.ValidateGroup(String ValidationGroup) at Blackbaud.Web.Content.Portal.CustomFormContentEditor.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
CreateDate: 2012-04-12 23:57:11.197
This is resolved in the latest version of NetCommunity. If this behavior is persistent, please confirm you’re on the latest version of NetCommunity.

Environment

 6.41, patch 8
 6.45.2034

Was this article helpful?