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 ...DotNetNuke Q&A Module ErrorDotNetNuke Q&A Module Error
Previous
 
Next
New Post
6/29/2013 8:18 AM
 

I use the Q&A module on my site and it works perfectly - except for one user.  When he tries it gives a "A critical error has occurred. An unexpected error has occurred" message.  The event log gives me:

6/28/2013 12:19:56 PM
Page Load Exception
sergiomarqui
myElectrical
AssemblyVersion 7.0.1 PortalID 0 PortalName myElectrical UserID 3737 UserN
AssemblyVersion: 7.0.1
PortalID: 0
PortalName: myElectrical
UserID: 3737
UserName: sergiomarqui
ActiveTabID: 154
ActiveTabName: Questions
RawURL: /questions
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://myelectrical.com/questions
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID: 2d7344fc-5ef0-4f57-9203-c46da12fd5f2

InnerException: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlConnection.
StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. ---> System.Data.SqlClient.SqlException: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) 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.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at PetaPoco.Database.Execute(String sql, Object[] args) at DotNetNuke.Services.Journal.JournalDataServiceImpl.Journal_DeleteByKey(Int32 portalId, String objectKey) at DotNetNuke.DNNQA.Components.Integration.Journal.AddPrivilegeToJournal(QaSettingInfo objPrivilege, String title, String summary, Int32 portalId, Int32 tabId, Int32 journalUserId, String url) at DotNetNuke.DNNQA.Controls.HeaderNav.AwardMessaging() at DotNetNuke.DNNQA.Controls.HeaderNav.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:
Server Name: hvps151

Initially I though his display name [xxxxxx Quiñones], may have been a problem due to the accented characters.  I did try removing the accented characters, but it did not help.   I tried creating a test character with accented characters in the display name (normal in the user name) and it also gave the same error.

 
New Post
6/29/2013 8:47 AM
 
Journal_DeleteByKey seem to return multiple records per key, please check your database.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/29/2013 9:14 AM
 
Thanks for the response Sebastian.

What exactly should I be looking for in the database.
 
New Post
6/30/2013 9:57 AM
 
Steven, check the journal table for some unexpected duplicates

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/30/2013 10:46 AM
 
ok, after further investigation:
stored procedure Journal_DeleteByKey tries to identify a single journal entry by its ObjectKey. unfortunately, there is no unique key on this field in journal table and any delete call fails, if there are more than one items using the same object key,
You may identify the duplicate entries by running the following statement from Host > SQL:
SELECT JournalId FROM {databaseOwner}[{objectQualifier}Journal] WHERE ObjectKey IN (SELECT ObjectKey FROM {databaseOwner}[{objectQualifier}Journal] GROUP BY ObjectKey HAVING Count(1) > 1)

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 ...DotNetNuke Q&A Module ErrorDotNetNuke Q&A Module Error


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