Select to view content in your preferred language

Last run result message 0xF6 when trying to run a python script using Windows Task Scheduler.

15316
33
Jump to solution
09-10-2020 05:54 AM
MichaelTorbett
Frequent Contributor

I am running several python scripts on a schedule on a virtual machine that has ArcGIS Pro 2.6.1 installed. I am using the python.exe from my Pro python environment to run all of the scripts in task scheduler. However ever since ArcGIS Pro version 2.5.2, I have been getting the message 0xF6 in the last run results. The crazy thing is that this happens sporadically. Sometimes the tasks run fine and other times they don't. All of my python scripts run fine by themselves. 

Has anyone else had this issue and know of a fix? 

Thanks,

Michael 

33 Replies
MichaelVolz
Esteemed Contributor

John:

Your ultimate solution was having a vendor completely disable Cisco Exploit Prevention/Script Protection Engines on your GIS server?

My IT department would never allow that so I was wondering if you were ever able to keep Cisco Exploit Prevention/Script Protection Engines running with some exceptions.  I have gathered a bunch of exceptions both from ESRI support and the ESRI forums, none of which have resolved the problem so far.

0 Kudos
JohnNergeBrooklynPark
Frequent Contributor

Hi Michael,

I'm the third person on the telephone line (I told my IT, who told our vendor, who made the change and let IT know, who let me know), so I don't have the most comprehensive answer. According to my IT they had to put the server that I run my Python scripts on under the right policy. I assume that policy includes exceptions for what can/can't run on the server, but I don't know for sure. I also would be surprised if my IT were to allow an entire server not to run Cisco AMP, so my guess would be the policy provides more specific exceptions, but again I don't know. Sorry I can't be more helpful.

0 Kudos
MichaelVolz
Esteemed Contributor

John:

Is there a chance you could try asking as I have a bunch of exceptions in place in Cisco AMP based on ESRI tech support and forums, but so far failures are still occurring for me?

0 Kudos
MatthewStull1
Frequent Contributor

I had a similar issue to this and this is what solved it for me:

My python script runs by itself, not through the Pro scheduler thing, in Windows Task Scheduler.  It syncs updates from an enterprise geodatabase to a replica file Geodatabase on another server.  My script kept failing with error 000732 (can't find the geodatabase).  I fixed it by adding the folder location on the other server where my replica file geodatabase lives to the ArcGIS Server data store.  I am running my script on one of my ArcGIS Server servers using the ArcGIS Server python (not Pro).  Hope that helps anyone who might be having this or a similar issue.

0 Kudos