DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN Announcement - Critical Error

Sort:
You are not authorized to post a reply.





New Around Here





    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 ---






    Growing Member





      I just saw that you are in touch with Daniel Valadas on Github at the correct repo. So, you are in great hands!
      You are not authorized to post a reply.

      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:

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved