Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error on updating an HTML moduleError on updating an HTML module
Previous
 
Next
New Post
7/27/2010 7:38 PM
 
DotNetNuke 5.4.4 upgraded from earlier versions dating back to 4.x.
 A particular HTML module throws this error when it is edited and saved is saved.  There are 18 versions of the module contents.  The edited changes actually are saved.

---------
DotNetNuke.Services.Exceptions.ModuleLoadException: The DELETE statement conflicted with the REFERENCE constraint "FK_HtmlTextLog_HtmlText". 
The conflict occurred in database "alticoadvisors", table "dbo.HtmlTextLog", column 'ItemID'. The statement has been terminated. ---> 

System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_HtmlTextLog_HtmlText". The conflict occurred in database "xxxxxxx", table "dbo.HtmlTextLog", column 'ItemID'. The statement has been terminated.

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) 
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) 
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() 
at System.Data.SqlClient.SqlDataReader.get_MetaData() 
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) 
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) 
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) 
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) 
at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) 
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) 
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) 
at DotNetNuke.Modules.Html.SqlDataProvider.AddHtmlText(Int32 ModuleID, String Content, Int32 StateID, Boolean IsPublished, Int32 CreatedByUserID, Int32 History) 
at DotNetNuke.Modules.Html.HtmlTextController.UpdateHtmlText(HtmlTextInfo objHtmlText, Int32 MaximumVersionHistory) 
at DotNetNuke.Modules.Html.EditHtml.cmdSave_Click(Object sender, EventArgs e)
 --- End of inner exception stack trace ---

I assume that this is an attempt to delete old copies.  I can't find anywhere to specifiy how many copies should be kept.


How do I fix this?



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
7/27/2010 7:46 PM
 
fixed your post for you, holy nasty HTML effect you had going

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
7/28/2010 10:57 AM
 
Thanks for the fix to the formatting.

Any ideas on a fix to the problem?  <g>



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
8/2/2010 8:08 PM
 
Any ideas on this one?

I added a new Text/HTML module to a fresh page and began updating content.  All was normal up through 5 versions.  When I added the 6th version, I got the error mentioned above.  It did save the changes as the 6th version.  Same for the 7th version.

Help!!!



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
8/3/2010 4:19 AM
 
there seems to be missing a cascading delete trigger or constraint in the database, I suggest adding a cascading delete constraint. Did you encounter any issues on installing or upgrading HTML module?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error on updating an HTML moduleError on updating an HTML module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out