# Error in Execute Python Script Step

**URL:** <https://community.automationedge.com/t/error-in-execute-python-script-step/3783>\
**Category:** Process Studio\
**Created:** [June 29, 2021, 6:12am UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783 "2021-06-29T06:12:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [June 29, 2021, 6:12am UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783/1 "2021-06-29T06:12:07Z")

</div>

Hi,

When I try to run python script step (Simple script only) it is showing java.lang.NullPointerException. but if I run the same WF from AE portal through Agent, it’s working.

And I am unable to run python script in any other workflows also.

Could you please help me in solving this?

 ![image (2)](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/21e5fc031ecced2ca0c755290e415cfe2eb09c2f.png)

Thanks,  
Ramesh

---

<div class="post-metadata">

**Author:** ![AE\_Support](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/ae_support/32/354_2.png) [@AE\_Support](https://community.automationedge.com/u/AE_Support)\
**Post date:** [June 29, 2021, 8:25pm UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783/2 "2021-06-29T20:25:26Z")

</div>

Hello Ramesh,

Could you please share your workflow? We will check it from our end and let you know.

---

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [July 1, 2021, 1:47pm UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783/3 "2021-07-01T13:47:53Z")

</div>

[test.zip](https://community.automationedge.com/uploads/short-url/2i8fO52pf3Z1y3PXxuHZc17oRRd.zip) (2.6 KB)

Please find the workflow  
I am getting the same for all “python script step”  
And, Now I am not able to run any workflows having Python script from both process studio and AE Portal… Please help here to sort this issue out.

---

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [July 3, 2021, 7:59am UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783/4 "2021-07-03T07:59:49Z")

</div>

Could you please update on this?

---

<div class="post-metadata">

**Author:** ![aditya.devi](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@aditya.devi](https://community.automationedge.com/u/aditya.devi)\
**Post date:** [July 13, 2021, 12:29pm UTC](https://community.automationedge.com/t/error-in-execute-python-script-step/3783/5 "2021-07-13T12:29:24Z")

</div>

The workflow is working in our environment. Please update the AE version to 5.6.x or above. Attached are the screenshots for your reference.

 ![ExecutePythonScript](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/ef675742dbd0c95ef3eb72575471871f4e723bc2.jpeg)  
 ![Execute_Python_Script](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/c8c5d0844204c1a3814d0fa2450d73f5ce47dd13.jpeg)
