Howdy,
I was told this was the place to go to for custom programming troubleshooting. We wrote the following procedure to customize gettig suggested contribution amounts for our subscrption rollover. However, it keeps coming back with "too many arguments". Is there any chance someone could let me know where this is coming from? Any assistance is appreciated!
Richard Jackson, Alley Theatre
USE
[impresario]
GO
/****** Object: StoredProcedure [dbo].[LP_GET_CONTR1] Script Date: 02/07/2011 09:24:18 ******/
SET
OFF GO SET
OFF GO
ALTER
[LP_GET_CONTR1]
(
-- @LIST_NO INT = NULL,
@CUSTOMER_NO
)
AS
Set
-- added auto CWR 8/9/2001
DECLARE
0
--SET @LIST_NO = 12
-- SET @CUSTOMER_NO = 586 -- TESTING ON M. LONG --
--SET @CUSTOMER_NO = (SELECT CUSTOMER_NO FROM T_LIST_CONTENTS WHERE LIST_NO = @LIST_NO)
/***** GET CURRENT YEAR CONTRIBUTIONS *****/
-- GET THE CURRENT FISCAL YEAR --
declare
int if
if
begin
end else
else
())
end
--select @cyfyear'CURRENT_FISCAL_YEAR'
-- GOT IT --
-- GET INDIVIDUAL GIVING --
SELECT
FROM
T_CUSTOMER A
CUSTOMER_NO
CAMPAIGN_NO
WHERE
'%Annual Individual Giving'
@CYFYEAR
GROUP
-- GET CREDITED GIVING --
CREDITEE_NO
REF_NO
-- GET LY INDIVIDUAL GIVING --
'2010 Annual Individual Giving'
-- AND D.FYEAR = @CYFYEAR-1
-- GET LY CREDITED GIVING --
MONEY SET
@CYCREDITS
@LYCREDITS
MONEY SELECT
300
@CYTOTAL
@LYTOTAL
END
'@suggested_contr_amt_1'
The parameter set should be the same as the original sample procedure. These parameters are expected (even if not used) by the application.
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Richard JacksonSent: Monday, February 07, 2011 3:24 PMTo: Ryan CrepsSubject: Re: [Tessitura Technical Forum] LP_GET_CONTR! too many arguments
Hi Brian - thanks for the response!
@list_no was left over from me testing the SP against a list of folks - I commented it out so that i wouldn't be required.
The procedure is being called when a subscription rollover is done to populate a suggested contribution field in T_CUST_SUBSCRIPTION_SUMMARY. My understanding was all I would need from the SP was to return a suggested contribution amount. Since our logic is farily simple, I eliminated the other data Tessitura's sample procedure called for (source_no, no_seats, season_no, etc..) and set the SP to only require a customer_no to run.
Does that help?
From: Brian Graham <bounce-briangraham8283@tessituranetwork.com>Sent: 2/7/2011 2:14:02 PM
Looks like @list_no has been commented out in your sp. Are you still trying to pass that when you run it? Also, are you running this through an infomaker report or directly in Management Studio?
This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!