AnsweredAssumed Answered

Python Code to Load Feature Service to AGOL Not Working- 10.2 Issue?

Question asked by jfarmer@cityofstafford on Aug 27, 2013
Latest reply on Aug 14, 2014 by dpettittva
I have been using the code provided by Jeff Moulds in this thread to add feature services to AGOL:

http://forums.arcgis.com/threads/80680-How-to-publish-a-feature-service-to-ArcGIS-Online-from-an-mxd-USING-PYTHON

It has worked just fine in 10.1 but now I am getting an error and I think it may have something to do with 10.2

Traceback (most recent call last):   File "J:\GIS\Parcel_Data\Python_Data\Auto_Load_AGOL.py", line 60, in <module>     arcpy.UploadServiceDefinition_server(sd, con)   File "C:\Program Files\ArcGIS\Desktop10.2\arcpy\arcpy\server.py", line 1293, in UploadServiceDefinition     raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Server: Dataset My Hosted Services does not exist or is not supported Failed to execute (UploadServiceDefinition).


I have not changed anything with the code since it last worked in 10.1 so I can't think of anything else it could be?

Thanks,
Jonathan

Outcomes