AnsweredAssumed Answered

Running Model Via Python Script (Hosted Data)

Question asked by andrew.southern@Franklintn.gov_franklin on Dec 6, 2018
Latest reply on Dec 11, 2018 by vonmoosa



I used Model Builder to create a model that edits a hosted feature service that runs as expected when run manually.  But when I try to use python to run the model I get a Error 000732 Dataset Not Found Or Supported error.  The code is as follows:


import arcpy


from arcpy import env


arcpy.ImportToolbox(r"C:\Users\andrew.southern\Documents\ArcGIS\Projects\Adopt_A_Storm_Drain\Adopt_A_Storm_Drain.tbx", "Toolbox")  


Any ideas as to what I need to do differently?  For data in SDE this script usually works fine but am not experienced with running models against hosted feature services using python.


Thank you.