Hello community,
Using the latest combination of PB 2017 R3 and PS Web 2017 R3 in Windows 10 Pro, I get the following error when calling a stored procedure in a SQL Anywhere 11 database using output parameters:
Error 10999
Parameter[0]: the Size property has an invalid size of 0.
The following steps will produce the error in my setup.
1. Create a simple dummy procedure in the SQL Anywhere database:
@application_name varchar(80) OUTPUT
as
@application_name = 'Test Web Portal'
2. In a PowerBuilder SQLCA UserObject, declare under Local External Functions:
SUBROUTINE sp_testproc( ref string application_name ) RPCFUNC ALIAS FOR "~"dbo~".~"sp_testproc~""
(The ~" was necessary for deployment to Appeon Web and Mobile)
3. Execute the following PowerScript:
The stored procedure returns with an error, and the above message box displays.
The same code works as expected in client-server mode.
The same code works as expected when deployed to Appeon Web 2016 from PB 12.5.
Any ideas?
Thanks for the response. I am already using SQL Anywhere 11, and I have tried using ODBC data source, and I'm still getting the error.
One question: does it matter whether I'm using 32-bit or 64-bit PowerServer? I used the default PB 2017 R3 Universal installer, which installed the PowerServer shared components in the Program Files (x86) folder. However, in AEM, only the 64-bit ODBC data sources are visible.
Both 32-bit and 64-bit PowerServer work well on our end. I can reproduce this issue with SQL Anywhere 17 driver only.
Please open a support ticket here so we can resolve it: https://www.appeon.com/standardsupport/search
Ragards,
ZhaoKai