I have installed DNN Announcements, Release 7.2.1 onto my test websites running DNN Release 8.0.4 and Release 9.2.2 on Azure. In testing the Update function of an existing announcement results in the error shown below. As this module no longer uses stored procedures, I am unable to check the use/origin of this foreign key.
I do notice that the value of ContentID in the Announcements table is NULL. Thus, there is no way to create a foreign key. This may be the issue and cause of the error.
Is there a resonably quick fix for this issue?
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_ContentItems_MetaData_ContentItems". The conflict occurred in database "vwcorgASL2UCviemA_804T", table "dbo.ContentItems", column 'ContentItemID'. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_ContentItems_MetaData_ContentItems". The conflict occurred in database "vwcorgASL2UCviemA_804T", table "dbo.ContentItems", column 'ContentItemID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at PetaPoco.Database.Execute(String sql, Object[] args) at DotNetNuke.Data.SqlDataProvider.ExecuteNonQuery(String procedureName, Object[] commandParameters) at DotNetNuke.Entities.Content.Data.DataService.SynchronizeMetaData(ContentItem contentItem, IEnumerable`1 added, IEnumerable`1 deleted) at DotNetNuke.Entities.Content.ContentController.UpdateContentItem(ContentItem contentItem) at DotNetNuke.Modules.Announcements.Components.Business.AnnouncementsController.UpdateAnnouncement(AnnouncementInfo announcement) at DotNetNuke.Modules.Announcements.MVP.Presenters.AnnouncementsEditPresenter.UpdateAnnouncement(Object sender, EditItemEventArgs e) at DotNetNuke.Modules.Announcements.AnnouncementsEdit.CmdUpdateClick(Object sender, EventArgs e) --- End of inner exception stack trace ---
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.