Register   Login
     
  Latest Posts  
RE: News Articles Tokens
by ray-isc on 3/21/2010 3:04 PM
RE: Can'd add photo
by rsobari on 3/21/2010 10:17 AM
Tracking image/file clicks
by spirit on 3/21/2010 8:46 AM
Catcha doesnt seem to work
by chaloum on 3/20/2010 8:16 PM
RE: Recently created articles are not shown in list
by atriage on 3/20/2010 10:15 AM
RE: Recently created articles are not shown in list
by spirit on 3/20/2010 10:08 AM
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
  Forums  
Subject: Error on reports
Prev Next
You are not authorized to post a reply.

Author Messages
Jack HoelzUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:861


5/09/2008 9:59 AM  

When running a report for active subscriptions I get this error (1.3.1 & DNN 4.5.5)

Error: View Reports is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: ALTER TABLE DROP COLUMN failed because 'RowText' is the only data column in table '#Rows'. A table must have at least one data column. ---> System.Data.SqlClient.SqlException: ALTER TABLE DROP COLUMN failed because 'RowText' is the only data column in table '#Rows'. A table must have at least one data column. 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 DnnForge.SubscriptionTools.SqlDataProvider.ListReport(Int32 portalID, Int32 moduleID, ReportType reportType, DateTime dateStart, DateTime dateEnd) at DnnForge.SubscriptionTools.Entities.ReportController.List(Int32 portalID, Int32 moduleID, ReportType reportType, DateTime dateStart, DateTime dateEnd) at DnnForge.SubscriptionTools.Reports.cmdDisplay_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---


Get The Net!!

Jack Hoelz
Jack HoelzUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:861


5/09/2008 10:02 AM  
And this when I look at expiring

Error: View Reports is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: String or binary data would be truncated. The statement has been terminated. ---> System.Data.SqlClient.SqlException: String or binary data would be truncated. 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.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 DnnForge.SubscriptionTools.SqlDataProvider.ListReport(Int32 portalID, Int32 moduleID, ReportType reportType, DateTime dateStart, DateTime dateEnd) at DnnForge.SubscriptionTools.Entities.ReportController.List(Int32 portalID, Int32 moduleID, ReportType reportType, DateTime dateStart, DateTime dateEnd) at DnnForge.SubscriptionTools.Reports.cmdDisplay_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

Get The Net!!

Jack Hoelz
Jack HoelzUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:861


6/02/2008 7:32 AM  
Need some help with this please! Having some real problems with the module. Users are not being added to roles either.

Get The Net!!

Jack Hoelz
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


6/02/2008 7:44 AM  
Need more information on "Users are not being added to roles either"

Can you also specify which report is not working and what version of SQL server? I suspect you have no data, this is the reason the report is not running. Have you had people signup?

This site runs 4.5.5 and they appear to be running OK on this install. The SQL Server instance for this site is 2005.

Scott McCulloch
Site Administrator
Kerberos Services SrlUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:2

7/14/2008 7:29 AM  

Jack, I was having your same problem with report type "Subscriptions Expiring".

In my opinion, there is a small bug in the stored procedure DnnForge_SubscriptionTools_GetReport1

I've changed

     SET @SQL = ' SELECT ''Total Memberships       '' as Role, '

in

     SET @SQL = ' SELECT ''Total Memberships                                 '' as Role, '

and now the module works fine.

To avoid problems the string must be 50 characters long, just because [Name] is varchar(50) in the table DnnForge_SubscriptionTools_Receipt

Shad PulleyUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:64


7/14/2008 2:11 PM  

I can confirm that this fixed the problem.  Scott, can you please update the source?


Shad Pulley
Webmaster - Model Railroads Online
Follow my progress as I convert to DNN in my blog: Renovating MLS
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


7/30/2008 4:44 AM  
I'm not sure I understand what the fix is?

Scott McCulloch
Site Administrator
Shad PulleyUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:64


7/30/2008 9:50 AM  
Basically, the fix is to add more spaces in between Memberships and "as Role, to make the number of characters at least 50 in the string..

Shad Pulley
Webmaster - Model Railroads Online
Follow my progress as I convert to DNN in my blog: Renovating MLS
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


8/11/2008 7:50 AM  
This has now been corrected in the latest release.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Subscription Tools > Error on reports



ActiveForums 3.7