How to execute python file placed on MID Server from ServiceNow flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @santhrushna Gan ,
The following resource will help you out :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754843
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784615
Hope this helps you, Please do mark it as helpful . And accept the solution.
Thanks,
Vishnu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Thanks Vishnu for quick response.
I have tried above process and still not able to get it execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @santhrushna Gan ,
Can you share how you're doing it , so that it's better to answer more accurately.
Thanks,
Vishnu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
