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 ForumsBlogBlog2 blogs got created for same user! ...now his blog setting throws errors.. HELP2 blogs got created for same user! ...now his blog setting throws errors.. HELP
Previous
 
Next
New Post
7/17/2008 9:08 AM
 

Hello,

I am using DNN 4.5.5. One of my user has got 2 blogs created for the same user-id (neither he nor i have any clue how this can happen). Now when he logs-in he gets an error under "New_blog"

An error has occurred. Error: New_Blog is currently unavailable.

 

The details of the error are as follows:

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8dc6e9fc-3ece-4643-89be-a5e58ed26b3f
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.OnError
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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.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.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Blog.Data.SqlDataProvider.GetBlogByUserID(Int32 PortalID, Int32 UserID) at DotNetNuke.Modules.Blog.Business.BlogController.GetBlogByUserID(Int32 PortalID, Int32 UserID) at DotNetNuke.Modules.Blog.Blog.Page_Load(Object sender, EventArgs e)

--- End of inner exception stack trace ---

Please tell me whats the solution to this problem??

thanks in advance,

Raghu


Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
New Post
7/19/2008 3:35 AM
 

Hi Raghu,

I heard of this issue when hitting the "back" button on the browser during the blog creation. I think the only way to get the module back working is to delete through SQL the duplicate record in the Blog_Blogs table. Let me know if you need further help in doing it.

Best regards,
Dario Rossa

 
New Post
7/19/2008 10:21 AM
 

Hi Dario,

Thanks for that insight into the issue.

i would be really grateful if you could guide me through the process of deleting the duplicate entry using SQL... bcoz i've got only basic knowledge of SQL...

- raghu


Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
New Post
7/21/2008 2:44 AM
 

Hi Raghu,

having little knowledge of SQL I suggest you to use Microsoft SQL Server Management Express, that is free and very easy t use. You can get the connection username and password from your web.config file. Locate the table and just delete the duplicated row.

If you are more confident in SQL you can log in as Host and go to the Host > SQL menu, check 'Run as Script' and execute the script:

DELETE FROM {databaseOwner}{objectQualifier}Blog_Blogs
WHERE BlogID='xxx'

where xxx is the duplicated blog ID. Let me know if you need further help in it.

Best regards,
Dario Rossa

 
New Post
7/25/2008 2:23 AM
 

Hi Dario,

Thanks a ton! that worked for me. The user has got his normal settings back.

Do you think its a bug? if yes then i can report it officialy on gemini (if it hasn't been removed in the latest blog version... mine is DNN 4.5.5).

Anyways.. thanks again..

- Raghu


Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlog2 blogs got created for same user! ...now his blog setting throws errors.. HELP2 blogs got created for same user! ...now his blog setting throws errors.. HELP


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