on 07-23-2015 2:08 PM
I am trying to retrieve data (through a parameter) from sql server based Stored Procedure via a datawindow but running into an error. The error is "invalid character value for cast specification". Below is part of the edit source of the datawindow
/////
procedure="1 execute dbo.usp_select_auditexport;1 @export = :export" arguments=(("export", string)) )
/////
When I try to retrieve data in test by running the datawindow in PB and get the pop up of export and whether I put in a string value with or without quotes I get the error.
During runtime too I get a similar error of "invalid argument value". example dw_auditexport.retrieve(ls_export) . The ls_export is set 'M'. Please help.
KB
Hello Kwadwo,
Which PB version?
Are you connecting through ODBC?
If yes, please take a look at the PBNewsSPInvocation DBParm to see if it improves the situation (value should be set to 'Yes'):
I think it must be correlated with other DBParm StripParmNames (value should also be set to 'Yes'):
HTH,
Jacob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jacob,
I am using 12.1 and yes, ODBC. Through a little research I took out CallEscape='No'
and maintained StripParmNames='Yes' in my DBParm and it worked.
So I changed from
SQLSVR2.DBParm = "Connectstring='DSN="+ls_dsn4+";UID="+db_Login4+";PWD="+db_Password4+"',StripParmNames='Yes' and CallEscape='No'"
to
SQLSVR2.DBParm = "Connectstring='DSN="+ls_dsn4+";UID="+db_Login4+";PWD="+db_Password4+"',StripParmNames='Yes'"
Thanks,
KB
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.