Go Back   CHECKBOX® Online Community > Checkbox® > CHECKBOX® Survey Server 4.x

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2007, 02:02 PM
fret_24 fret_24 is offline
Junior Member
 
Join Date: Mar 2007
Location: Walla Walla, WA
Posts: 8
Default Report error

I'm getting the following error when I try to run a report. I'm wondering if it has anything to do with the upgrade issues I had. Any ideas???

Unable to render graph. Error was: Procedure or function ckbx_Image_InsertImage has too many arguments specified.
Reply With Quote
  #2 (permalink)  
Old 05-08-2007, 02:21 PM
pwiesner pwiesner is offline
Senior Member
 
Join Date: Mar 2007
Posts: 146
Default

The error message “Procedure or function XXXX has too many arguments specified” occurs when two or more instances of the same object are created in a database. Generally this occurs if the create sql scripts are run multiple times under different credentials.

You can confirm that this is the issue by scrolling through the list of stored procedures in SQL Server Management Studio, you should see at least two instances of ckbx_Image_InsertImage. Stored procedures are listed alphabetically, with the owner name being the first part of the name as a result the stored procedures will not be next to each other.

If this is your issue you will need to delete all of the stored procedures except the ones that Checkbox uses access the database. You can confirm which credentials Checkbox uses to access the database with the connection string located in the web.config file.
Reply With Quote
  #3 (permalink)  
Old 05-08-2007, 03:59 PM
fret_24 fret_24 is offline
Junior Member
 
Join Date: Mar 2007
Location: Walla Walla, WA
Posts: 8
Default

All of the stored procedures exist only once. I ran a trace in SQL Profiler and I don't see the call to that procedure making it to the database. Any thoughts?
Reply With Quote
  #4 (permalink)  
Old 05-09-2007, 09:56 AM
pwiesner pwiesner is offline
Senior Member
 
Join Date: Mar 2007
Posts: 146
Default

You are correct this sounds like an upgrade issue. The signature of this stored procedure changed in Checkbox 4.1. How many parameters does your stored procedure expect?
The version in Checkbox 4.1 expects 7 parameters. If yours copy has less than this it seems likely that your database was not updated correctly. If your copy has 7 parameters it seems like one or more dll was not updated.
Reply With Quote
  #5 (permalink)  
Old 05-09-2007, 12:31 PM
fret_24 fret_24 is offline
Junior Member
 
Join Date: Mar 2007
Location: Walla Walla, WA
Posts: 8
Default

It was indeed a problem with the stored procedure. I manually ran the Checkbox_StoredProcedures sql script in the Install\InstallScripts directory on the database and that fixed it. I did get a few messages when I ran it...

I got the following message for both: ckbx_Response_GetRTResponses and ckbx_Response_GetRTAnswers.

Cannot add rows to sysdepends for the current object because it depends on the missing object 'OBJECT'. The object will still be created.

I can't find anywhere where those are created. Any idea what other scripts I may need to run? I'm sort of thinking about just scrapping the whole installation and starting over fresh since we're just getting started and only have test data in the database right now.
Reply With Quote
  #6 (permalink)  
Old 05-09-2007, 12:39 PM
ncushing ncushing is offline
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 171
Default

You can safely ignore that warning. SQL server prints that warning when a stored procedure that uses a not-yet-created object is created. In this case, the object is another stored procedure created later in the same script.
Reply With Quote
  #7 (permalink)  
Old 05-09-2007, 12:45 PM
fret_24 fret_24 is offline
Junior Member
 
Join Date: Mar 2007
Location: Walla Walla, WA
Posts: 8
Default

Awesome, thanks for the help guys.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:39 PM.


Search Engine Friendly URLs by vBSEO 3.0.0 RC8