Some Error with Python Script

Hi Team,

gettign following error while executing the python code

ERROR Validation Error 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. Main.xaml

Hi @devasaiprasad_K

Try this:

New List(Of Object)({2,3})

Regards

Hi @devasaiprasad_K

Try this

New List(Of Object)({2,3})

Regards,

but in NoNe of the Video’s they showed as LIST!!

Hi @devasaiprasad_K

Try this then:
New Object(){2, 3}

The above should also work
Regards

Hi @devasaiprasad_K,

The documentation states this (see screenshot). Therefore, you need to provide a variable of type IEnumerable<Object>. That’s why the notation mentioned above is necessary. You’re attempting to provide IEnumerable<Int32>, and this is where your error originates.

Activities - Invoke Python Method (uipath.com)

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