Nice tool. It works fine for me when executed the usual way (double click on tool, fill in parameter values in form, etc). However I've been trying to call it from a Python script, and I get errors. Something about parameters that correspond to check boxes on the form. Here's the caller snippet... arcpy.ImportToolbox(tbx_path) # setup parameters hostedFeatureService = 'true' #True agsService = 'false' #False baseURL = "http://services1.arcgis.com/0U8EQ1FrumPeIqDb/ArcGIS/rest/services/OCFLAtlas_CompPlanCases_View/FeatureServer/0" whereClause = None agsFeatures = 'true' #True agsTable = 'false' #False username = None password = None outputFC = "\\t3600\D_drive\projects\Orange3\dev_APP\notification_dev\REST scripts from Dean\test_download\OCFLAtlas_CompPlanCases_View" getAttachments = 'false' #False cwd = None # make the call arcpy.DownloadService( hostedFeatureService, agsService, baseURL, whereClause, agsTable, username, password, outputFC, getAttachments, cwd ) For the Boolean input, I have tried python True/False, and I have tried string 'true'/'false'. Here's the error when executed in Idle... Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART: \\t3600\D_drive\projects\Orange3\dev_APP\notification_dev\REST scripts from Dean\Download Service toolbox tool\test_download.py ERROR: unable to download CompPlanCases due to arcpy error, Please check 'Downloading Feature Data' or 'Downloading Tabular Data' Failed to execute (DownloadService). Any ideas? I am using 10.6 on Win10. the .tbx file is in a plain windows folder, not in a toolbox.
... View more