I have created a model to delete a database and then copy the sde feature classes to a file geodatabse and it works sucessfully in modelbuilder when I try and schedule it as a task in Windows scheduler its running but not giving me my results, I keep getting a (0X1) expression under theLastsuccessfully tab. THX FOR YOUR HELP
Hi Jonah,
What program/executable are you specifying for the 'Start in' option?
Nothing, I did try posting the ArcMAP startup executable but without any sucess
Have a look at the below Blog and link and make sure you are following the steps correctly:
Scheduling a Python script or model to run at a prescribed time | ArcGIS Blog
Scheduling a Python script to run at prescribed times:
Yeah i have other scripts working successfully however the only thing I can think about is the successfully run ones all the data is hosted locally on my C: Drive. The one that is not working is hosted locally but is pulling feature classes from the server. Does that have any effect????
To narrow down the cause of the issue, you can try modifying it to host locally and check if that works.
> The one that is not working is hosted locally but is pulling feature classes from the server. Does that have any effect????
The default security for regular Windows users in Task Scheduler is not allow access to networks or devices unless the user is logged in. You may want to look into your group policy settings and see if you can get them changed.
or even to Lock your workstation as you. This is how I have been doing it for the last 7 years, good or bad, it works.
Check the "Run with highest privileges" check box.
And what are you including in the "Program/script" field in the "Edit/Action" text box? I don't remember if models are exposed itself as any kind of executable file or only tbx files are....
Jesús de Diego
C:\DataReviewer_GUC\PythonScripts\Sewer_DatabaseTransfer.py
This is what is under the Progra/Script