We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. 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
Giga 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.

 

 

Issue resolved? → Mark as Correct


Found value? → Mark as Helpful