# Input Parameter Property for Invoke Python Method

**URL:** <https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511>\
**Category:** Help\
**Tags:** python, activities\
**Created:** [January 29, 2019, 5:49pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511 "2019-01-29T17:49:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prameelaj](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@prameelaj](https://forum.uipath.com/u/prameelaj)\
**Post date:** [January 29, 2019, 5:49pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/1 "2019-01-29T17:49:57Z")

</div>

I am trying to pass a variable of a Variable Type Generic as an Input Parameter to the Invoke Python Method. The variable has a body of the email. I just wanted to pass this variable to the python script as an input. Can anyone help me on this?

---

<div class="post-metadata">

**Author:** ![Naveen\_tg](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/naveen_tg/32/45487_2.png) [@Naveen\_tg](https://forum.uipath.com/u/Naveen_tg)\
**Post date:** [January 29, 2019, 6:41pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/2 "2019-01-29T18:41:15Z")

</div>

Hi @prameelaj,  
In invoke python method activity , give your **input parameter** property of activity as shown

 ![s1](https://global.discourse-cdn.com/uipath/original/3X/2/2/226cc264e85afa1f3826503903dcbf4a25a4ac4c.png)

Note:This activity only accepts IEnumerable variable.

Hope this helps!

Thanks,  
Naveen

---

<div class="post-metadata">

**Author:** ![prameelaj](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@prameelaj](https://forum.uipath.com/u/prameelaj)\
**Post date:** [January 30, 2019, 5:48pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/3 "2019-01-30T17:48:39Z")

</div>

Thanks… I am able to fix it. I am getting now error message in Load PYtho Script “Error Loading Python Script” and exception as “System.InvalidOperationException”. Can you help?

---

<div class="post-metadata">

**Author:** ![Naveen\_tg](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/naveen_tg/32/45487_2.png) [@Naveen\_tg](https://forum.uipath.com/u/Naveen_tg)\
**Post date:** [January 30, 2019, 5:56pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/4 "2019-01-30T17:56:06Z")

</div>

can you upload your workflow

---

<div class="post-metadata">

**Author:** ![prameelaj](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@prameelaj](https://forum.uipath.com/u/prameelaj)\
**Post date:** [January 30, 2019, 6:07pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/5 "2019-01-30T18:07:11Z")

</div>

[GetOutlookMessage.xaml](https://global.discourse-cdn.com/uipath/original/3X/1/2/12d9907516ae3038560dd81f3e6f664f935fda62.xaml) (10.6 KB)

---

<div class="post-metadata">

**Author:** ![Naveen\_tg](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/naveen_tg/32/45487_2.png) [@Naveen\_tg](https://forum.uipath.com/u/Naveen_tg)\
**Post date:** [January 31, 2019, 3:31am UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/6 "2019-01-31T03:31:40Z")

</div>

Share your python file also

---

<div class="post-metadata">

**Author:** ![prameelaj](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@prameelaj](https://forum.uipath.com/u/prameelaj)\
**Post date:** [January 31, 2019, 3:32pm UTC](https://forum.uipath.com/t/input-parameter-property-for-invoke-python-method/91511/7 "2019-01-31T15:32:17Z")

</div>

This is my Python code.

#!/usr/bin/python

import sys

def print(name):  
return "Hi " + name

if **name** == “ **main** ”:  
print(sys.argv[1:])
