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 ForumsSurveySurveyModulLoadExceptionModulLoadException
Previous
 
Next
New Post
2/12/2007 9:11 AM
 

Here my results for: select * from SurveyOptions

SurveyOptionID SurveyID ViewOrder OptionName Votes IsCorrect
1 1 0 1 0 False
2 1 1 2 0 False

and for: exec getsurvey 1,379

SurveyID ModuleID Question ViewOrder OptionType CreatedByUser CreatedDate Votes
1 379 test 2 R SuperUser Account 2/11/2007 6:18:09 PM 0

What's wrong?

 
New Post
2/12/2007 9:25 AM
 

The problem is the "CreatedByUser" colum should have a number not a name. In the "03.03.00.SqlDataProvider" we changed created by user to use an integer rather than the name. Is this a site that you created a survey using a previous version of the module? If so that would explain the problem.

Run this query and that should fix the problem:

update surveys set createdbyuser = 1

If it does, please create another survey and see if you get the problem again. If you do run this query and see if "CreatedByUser" is a number.

select * from surveys

If it is not uninstall the module and re-install it again. Then try creating a question again.

I think this is an "upgrade problem". Again thatnk you for your help. For now I will enter a bug that should check for situations where "CreatedByUser" is not a number.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/12/2007 9:53 AM
 

Ok I looked again and I see that you just created this survey. It appears you have this stored procedure from 03.01.00.SqlDataProvider:

create procedure {databaseOwner}{objectQualifier}GetSurvey

@SurveyID int,
@ModuleID int

as

select SurveyID,
       ModuleID,
       Question,
       ViewOrder,
       OptionType,
       'CreatedByUser' = {objectQualifier}Users.FirstName + ' ' + {objectQualifier}Users.LastName,
       CreatedDate,
       'Votes' = ( select sum(Votes) from {objectQualifier}SurveyOptions where {objectQualifier}SurveyOptions.SurveyID = {objectQualifier}Surveys.SurveyID )
from   {objectQualifier}Surveys
left outer join {objectQualifier}Users on {objectQualifier}Surveys.CreatedByUser = {objectQualifier}Users.UserID
where  SurveyID = @SurveyID
and    ModuleID = @ModuleID

it should be this one from 03.03.00.SqlDataProvider

create procedure {databaseOwner}{objectQualifier}GetSurvey

@SurveyID int,
@ModuleID int

as

select SurveyID,
       ModuleID,
       Question,
       ViewOrder,
       OptionType,
       CreatedByUser,
       CreatedDate,
       'Votes' = ( select sum(Votes) from {objectQualifier}SurveyOptions where {objectQualifier}SurveyOptions.SurveyID = {objectQualifier}Surveys.SurveyID )
from   {objectQualifier}Surveys
where  SurveyID = @SurveyID
and    ModuleID = @ModuleID

So it appears it is failed scripts in the upgrade (this was an upgrade right?). To fix this you can uninstall and re-install the module. Or follow the directions on this page to re-run the scripts



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/12/2007 11:37 AM
 

I tried as you describe. I Uninstalled the 4.00.50, Restart the Application. But when I tried to install it always fail at the sql.Provider.

I manually deleted the 3 procedures. Then I tried to run the scripts on mentioned page. The first script runs fine. But when I starts the second, it alway throw the following error:

 

System.Data.SqlClient.SqlException: Invalid object name 'dbo196450521.sysobjects'. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo196450521.sysobjects where id = object_id(N'dbo196450521.[GetSurvey]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure dbo196450521.GetSurvey System.Data.SqlClient.SqlException: There is already an object named 'GetSurvey' in the database. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) create procedure dbo196450521.GetSurvey @SurveyID int, @ModuleID int as select SurveyID, ModuleID, Question, ViewOrder, OptionType, CreatedByUser, CreatedDate, 'Votes' = ( select sum(Votes) from SurveyOptions where SurveyOptions.SurveyID = Surveys.SurveyID ) from Surveys where SurveyID = @SurveyID and ModuleID = @ModuleID

It's the same like before, installing normaly.

Then I starts the clearing script.

Next i do was starting the first script. OK

Starting the second it went into the same error.

What can I do?

 
New Post
2/12/2007 12:21 PM
 

The problem is this line in the script:

if exists (select * from {databaseOwner}sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}GetSurvey]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}GetSurvey
it should be this:
if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}GetSurvey]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}GetSurvey
I wll log this as a bug. It will happen to anyone who had a dbo named anything other than "dbo"


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyModulLoadExceptionModulLoadException


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