We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to execute python file placed on MID Server from ServiceNow flow

santhrushna Gan
Tera Contributor

I am trying to execute the python file placed on MID Server from ServiceNow flow. But  I am unable to execute as it is giving me error as either "File Path not found" or "Cant connect & Timed Out". Is there any documentation or steps that you could provide to execute the python file from Flow Designer.

 

Any Suggestions/Ideas?

 

Thanks

Santhu.

4 REPLIES 4

Thanks Vishnu for quick response.

 

I have tried above process and still not able to get it execute.

Hi @santhrushna Gan ,

 

Can you share how you're doing it , so that it's better to answer more accurately.

 

Thanks,

Vishnu

shubhamseth
Mega Sage

@santhrushna Gan 

 

1. Check the python version

2. Verify the file path 

    Windows example:
C:\ServiceNow\scripts\test.py

3. Give permissions Read and Execute

4. Increase timeout 300 sec

5. Check the Log file to validate the erros.

 

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain