# Issue when invoking python script

**URL:** <https://forum.uipath.com/t/issue-when-invoking-python-script/494755>\
**Category:** Studio\
**Tags:** systemexception, data, python, activities\
**Created:** [29. November 2022 um 11:32 UTC](https://forum.uipath.com/t/issue-when-invoking-python-script/494755 "2022-11-29T11:32:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.forbes](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/b.forbes/32/267780_2.png) [@b.forbes](https://forum.uipath.com/u/b.forbes)\
**Post date:** [29. November 2022 um 11:32 UTC](https://forum.uipath.com/t/issue-when-invoking-python-script/494755/1 "2022-11-29T11:32:07Z")

</div>

I am trying to run a python script on a series of documents to generate new reports.

The script is working, but it is throwing this error in UiPath, causing the bot to fail -

 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/9/f/79f90b08c298e5a5abbcdbe0abd82ebef7e70074.png)

There are no arguments or variables called “stream” in my workflow, or in the python script, so I’m not sure what the process is failing to assign.

Properties of scope:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/0/d/c0d850e378bdf78f1e795082b07a4aa93c8daa8b.png)

Properties of invoke script:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/4/8/8/4880ce9a9f1292bd2c5b3a6c223df666d7f9d07f.png)

Any help much appreciated.

---

<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:** [1. Dezember 2022 um 16:00 UTC](https://forum.uipath.com/t/issue-when-invoking-python-script/494755/2 "2022-12-01T16:00:52Z")

</div>

Hello @b.forbes!

It seems that you have trouble getting an answer to your question in the first 24 hours.  
Let us give you a few hints and helpful links.

First, make sure you browsed through our [**Forum FAQ Beginner’s Guide**](https://forum.uipath.com/t/forum-faq-beginner-s-guide/200562). It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

1. **Always search first**. It is the best way to quickly find your answer. Check out the [![image](https://global.discourse-cdn.com/uipath/original/3X/d/f/df7370d76626e03b84e2bf049481f5a20d345ef9.png)](https://forum.uipath.com/search) icon for that.  
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

2. Topic that contains most common solutions with example project files can be found [**here**](https://forum.uipath.com/t/your-xaml-solutions-for-most-common-issues-wiki-post-anyone-can-edit/108894).

3. Read our [**official documentation**](https://docs.uipath.com) where you can find a lot of information and instructions about each of our products:

4. Watch the videos on our [**official YouTube channel**](https://www.youtube.com/user/UiPath) for more visual tutorials.

5. Meet us and our users on our [**Community Slack**](https://join.slack.com/t/uipathcommunity/shared_invite/zt-19ovcbo1u-S7xNszAzcJcdlG9o4A1CTA) and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly  
[Forum\_Staff](https://forum.uipath.com/new-message?groupname=Forum_Staff)
