Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Trying to run a model called from a script fails

$
0
0
I have a model that runs fine in model builder. It will not run as a script exported from model builder, apparently because it contains a composite address locator. As a workaround, I have a python script that should call on the actual model to run. However, I think the model is crashing back at the geocode again. Any thoughts on what is causing the problem?

Here is the script calling the model:

import arcpy

arcpy.ImportToolbox(r"C:\Users\.......\My Toolboxes\Models.tbx", "TBX")

arcpy.Model1_TBX()



Is it the composite address locator that is still causing the problem? Should it be if the model runs fine on its own?

Viewing all articles
Browse latest Browse all 2485

Trending Articles