Running a model from python script to use in Task Scheduler

Discussion created by RWHupp on Jan 30, 2014
Using examples from
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:

import arcpy
arcpy.ImportToolbox("C:\\Users\\rh82134\\Documents\\ArcGIS\\Toolbox.tbx", "TBX")

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?