Hi,
Can you modify your stored procedure? put input parameter with default value NULL.
The service instance should pick up required or not required input parameters if you set the input paramteres n the stored procedure to NULL when you initialise them. EG:
declare @test nvarchar] (400) = NULL
I already am setting several of the parameters to NULL defaults but the ServiceObject seems to list all parameters as required. I can work around it by setting the appropriate default in the SmartObject's method's parameter mapping, but it would be nice to know how to control the "Required" information.
Thanks guys.
Hi Bugmeister
Try changing the setting for your SQL Service instance to "User Parameters for Stored Procedures" to false and update your service instance. Have a look at the following thread which addresses a similar issue:
http://community.k2.com/t5/K2-blackpearl/Required-Stored-Procedure-Parameter/td-p/53439/page/2
Thanks Andrew,
Changing that setting actually went to the other extreme where all parameters are now not required, even those without defaults assigned.
Cheers
Peter
I had the same issue. I changed permission of user, who were used to connect DB in Service Instance Configuration to db owner. Worked for me, but I am still looking for solution, where not such high rights would be required...
Best Regards,
Grzegorz
I have confirmed and ran into this issue recently.
This has to do with using the K2 service account VS impersonation on the service instance.
If you do not set the K2 Service account with DB_Owner rights this will occur.
Once you have set the permissions your properties set as NULL will no longer be required.
Just ensure to refresh your Service instance in the smartobject tester tool.