# Some Error with Python Script

**URL:** <https://forum.uipath.com/t/some-error-with-python-script/735858>\
**Category:** Help\
**Tags:** question, python, activities\
**Created:** [April 20, 2024, 9:55am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858 "2024-04-20T09:55:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![devasaiprasad\_K](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/devasaiprasad_k/32/512548_2.png) [@devasaiprasad\_K](https://forum.uipath.com/u/devasaiprasad_K)\
**Post date:** [April 20, 2024, 9:55am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/1 "2024-04-20T09:55:48Z")

</div>

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

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/2/1/d213d7c3148ce83d49758d10479690d5540dd28e.png)

---

<div class="post-metadata">

**Author:** ![vrdabberu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vrdabberu/32/484365_2.png) [@vrdabberu](https://forum.uipath.com/u/vrdabberu)\
**Post date:** [April 20, 2024, 9:58am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/2 "2024-04-20T09:58:10Z")

</div>

Hi @devasaiprasad_K

Try this:

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

Regards

---

<div class="post-metadata">

**Author:** ![lrtetala](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lrtetala](https://forum.uipath.com/u/lrtetala)\
**Post date:** [April 20, 2024, 9:58am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/3 "2024-04-20T09:58:21Z")

</div>

Hi @devasaiprasad_K

Try this

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

```

Regards,

---

<div class="post-metadata">

**Author:** ![devasaiprasad\_K](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/devasaiprasad_k/32/512548_2.png) [@devasaiprasad\_K](https://forum.uipath.com/u/devasaiprasad_K)\
**Post date:** [April 20, 2024, 10:02am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/4 "2024-04-20T10:02:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vrdabberu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vrdabberu/32/484365_2.png) [@vrdabberu](https://forum.uipath.com/u/vrdabberu)\
**Post date:** [April 20, 2024, 10:02am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/5 "2024-04-20T10:02:58Z")

</div>

Hi @devasaiprasad_K

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

The above should also work  
Regards

---

<div class="post-metadata">

**Author:** ![Julian\_Muhlbauer](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/julian_muhlbauer/32/523249_2.png) [@Julian\_Muhlbauer](https://forum.uipath.com/u/Julian_Muhlbauer)\
**Post date:** [April 20, 2024, 10:13am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/6 "2024-04-20T10:13:42Z")

</div>

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)](https://docs.uipath.com/activities/other/latest/developer/invoke-method)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/9/1/3/913c961193a3b554bc96b109b5e912939061ef2a.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [May 1, 2024, 11:04am UTC](https://forum.uipath.com/t/some-error-with-python-script/735858/7 "2024-05-01T11:04:21Z")

</div>

Closed on May 1, 2024, 11:04am UTC

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