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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumBug - SQL Error deleting a thread after changing the name of GroupBug - SQL Error deleting a thread after changing the name of Group
Previous
 
Next
New Post
7/29/2010 12:35 PM
 
Hello,
in these days I'm testing Forum module. All worked fine. Today I changed the group name (1 group 4 child forum). After this operation, if I delete a thread, an sql error occurs. I tried more and more times. The only way to avoid the error is to restore the original name group. Anyway the threads are deleted, but the counter of thread/posts is not updated. This is the SQL error:

ModuleId: 581
ModuleDefId: 121
FriendlyName:
ModuleControlSource: DesktopModules/Forum/Forum_PostDelete.ascx
AssemblyVersion: 5.1.4
PortalID: 3
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 194
ActiveTabName: Forum
RawURL: /Forum/tabid/194/ctl/PostDelete/mid/581/forumid/5/postid/4/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.XXXXX.it/Forum/tabid/194/ctl/PostDelete/mid/581/forumid/5/postid/4/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.10) Gecko/20100504 Firefox/3.5.10 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d22172b5-d675-447c-a410-f1eb5353b3d2
InnerException: L'istruzione UPDATE ha generato un conflitto con il vincolo COLUMN FOREIGN KEY 'FK_Forum_Posts_Forum_Threads' nel database 'Federsim', tabella 'Forum_Threads', column 'ThreadID'. L'istruzione è stata interrotta.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlConnection.OnError
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: L'istruzione UPDATE ha generato un conflitto con il vincolo COLUMN FOREIGN KEY 'FK_Forum_Posts_Forum_Threads' nel database 'Federsim', tabella 'Forum_Threads', column 'ThreadID'. L'istruzione è stata interrotta. ---> System.Data.SqlClient.SqlException: L'istruzione UPDATE ha generato un conflitto con il vincolo COLUMN FOREIGN KEY 'FK_Forum_Posts_Forum_Threads' nel database 'Federsim', tabella 'Forum_Threads', column 'ThreadID'. L'istruzione è stata interrotta. in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) in System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) in System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) in System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) in System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) in System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) in System.Data.SqlClient.SqlCommand.ExecuteNonQuery() in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) in DotNetNuke.Modules.Forum.SqlDataProvider.PostDelete(Int32 PostID, Int32 ModID, String Notes, Int32 PortalID) in DotNetNuke.Modules.Forum.PostController.PostDelete(Int32 PostID, Int32 ModeratorID, String Notes, Int32 PortalID, Int32 GroupID, Boolean DeleteThread, Int32 ParentID) in DotNetNuke.Modules.Forum.PostDelete.cmdDelete_Click(Object sender, EventArgs e) --- Fine dell'analisi dello stack dell'eccezione interna ---


What operations I can do in order to restore the normal behaviour?
 
New Post
7/29/2010 1:16 PM
 
Additional info: I noticed that when the delete action works, the popup window that ask for a confirmation does not appear! When the deletion does NOT work, the popup appears, very strange!
 
New Post
8/6/2010 12:28 AM
 
Is this happend on Forum 4.5.3 Or which version ?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumBug - SQL Error deleting a thread after changing the name of GroupBug - SQL Error deleting a thread after changing the name of Group


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