AnsweredAssumed Answered

Using Python to launch a model

Question asked by abarron289 on May 7, 2015
Latest reply on May 13, 2015 by abarron289



I'm new to using arcpy and I'm running into a few complications in getting a model to launch automatically using a python script. I've created the model, tested it, and it works perfectly. However, when I try to launch the model from python, it does not work. I've tried two methods. I've attached relevant documents.


1) contains the script used to import the toolbox, and run the model. (the model has no parameters). I've tested the script and I get the printed "Complete". However when I look at my results, the model did not run properly. In this case it did not identify any QC errors which the batch file in the model should have identified. Again, when I test the model within ArcGIS Desktop or Catalog, it works.



2) contains the script with the exported model. I exported the model to a .py file and tested that within python. As a result I received an error saying:

AttributeError: 'module' object has no attribute 'ExecuteReviewerBatchJob_Reviewer'



Any support would be greatly appreciated.