Not able to add input parameters in invoke python method

Hi all,

Created python script, trying to invoke in UiPath studio workflow. Getting error in adding input parameters.
image
Error:
Argument ‘Parameters’: BC36754: ‘Integer()’ cannot be converted to ‘IEnumerable(Of Object)’ because ‘Integer’ is not derived from ‘Object’, as required for the ‘Out’ generic parameter ‘T’ in ‘Interface IEnumerable(Of Out T)’. The selected value is incompatible with the property type.
Python script:
image
In python scope all the necessary path provided.
How to resolve this error, please guide me on this.

Hi @lakshmi.mp

Try this way:

New Object(){1, 2}

Regards

1 Like

Hi @lakshmi.mp

In the the Input parameters put the double quotes {“1”,“2”}

In your python code
result=int(a)+int(b)

In your GetPython Object Activity set the Type Argument as Int32

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.