Hi,
i have the following script which has optional parameters:
Sub CCC_RunQBMLimitedSQL(
statementNameOrUID As String,
Optional ByVal parameter1Name As String = Nothing,
Optional ByVal parameter1Value As Object = Nothing,
Optional ByVal parameter2Name As String = Nothing,
Optional ByVal parameter2Value As Object = Nothing,
Optional ByVal parameter3Name As String = Nothing,
Optional ByVal parameter3Value As Object = Nothing)
However, if I try to run this script from a process step with only the mandatory statementNameOrUID parameter (ParameterValue0) set, I get the following error:
ErrorMessages (2024-05-13 12:08:01.880) [829004] Wrong number of parameters (expected 7, got 1)
at StdioProcessor.StdioProcessor._Execute(Job job)
at VI.JobService.JobComponents.ScriptComponent.Activate(String task)
at VI.JobService.JobComponents.ScriptComponent._TaskScriptExec()
Is there any configuration that I am missing in the process step or elsewhere? Or is it simply not possible to omit optional parameters when calling a script from a process step?
Thank you for your support!