Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Blog Module [Le...  2 blogs got created for same user! ...now his blog setting throws errors.. HELP
Previous Previous
 
Next Next
New Post 7/17/2008 7:08 AM
User is offline raghu pandey
79 posts
10th Ranked


2 blogs got created for same user! ...now his blog setting throws errors.. HELP 

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

 
New Post 7/19/2008 1:35 AM
User is offline Dario Rossa
366 posts
www.dariorossa.it
8th Ranked




Re: 2 blogs got created for same user! ...now his blog setting throws errors.. HELP 

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


Dario RossaDario Rossa
Personal WebSite: http://www.dariorossa.it
DotNetNuke: http://dotnetnuke.dariorossa.it
 
New Post 7/19/2008 8:21 AM
User is offline raghu pandey
79 posts
10th Ranked


Re: 2 blogs got created for same user! ...now his blog setting throws errors.. HELP 

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

 
New Post 7/21/2008 12:44 AM
User is offline Dario Rossa
366 posts
www.dariorossa.it
8th Ranked




Re: 2 blogs got created for same user! ...now his blog setting throws errors.. HELP 

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


Dario RossaDario Rossa
Personal WebSite: http://www.dariorossa.it
DotNetNuke: http://dotnetnuke.dariorossa.it
 
New Post 7/25/2008 12:23 AM
User is offline raghu pandey
79 posts
10th Ranked


Re: 2 blogs got created for same user! ...now his blog setting throws errors.. HELP 

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

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Blog Module [Le...  2 blogs got created for same user! ...now his blog setting throws errors.. HELP
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP