Using examples from
http://blogs.esri.com/esri/arcgis/20...portmodeltopy/
and
http://joelmccune.com/2011/05/05/run...heduled-tasks/
and posts from the forums here, I'm trying to run a model from modelbuilder to use in Task Manager.
The model works in ArcMap and the python code works in the python.exe interpreter when I run it and modifies the data in both cases.
The problem is in Task Scheduler, when I run the scheduler it results as sucess but the feature layer and data is not being altered.
Here is my python code to run model from the script:
I know my actions are set up right in Task Scheduler:
In progam/script I have C:\Python27\ArcGIS10.1\python.exe
and the argument to the .py file.
Can anybody help me with this?
http://blogs.esri.com/esri/arcgis/20...portmodeltopy/
and
http://joelmccune.com/2011/05/05/run...heduled-tasks/
and posts from the forums here, I'm trying to run a model from modelbuilder to use in Task Manager.
The model works in ArcMap and the python code works in the python.exe interpreter when I run it and modifies the data in both cases.
The problem is in Task Scheduler, when I run the scheduler it results as sucess but the feature layer and data is not being altered.
Here is my python code to run model from the script:
Code:
import arcpy
arcpy.ImportToolbox("C:\\Users\\rh82134\\Documents\\ArcGIS\\Toolbox.tbx", "TBX")
arcpy.AFWtestauto_TBX()
In progam/script I have C:\Python27\ArcGIS10.1\python.exe
and the argument to the .py file.
Can anybody help me with this?