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

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

$
0
0
I have been using the code provided by Jeff Moulds in this thread to add feature services to AGOL:

http://forums.arcgis.com/threads/806...d-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

Code:

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

Viewing all articles
Browse latest Browse all 2485

Trending Articles