Select to view content in your preferred language

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

2261
5
Jump to solution
08-27-2013 11:23 AM
JonathanFarmer1
Deactivated User
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...

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
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor
Hi Jonathan,

This is unfortunately a bug at 10.2, and has been logged, #NIM093766:  When uploading to My Hosted Services, arcpy.UploadServiceDefinition fails with error "000732 Server: Dataset My Hosted Services does not exist or is not supported".].

The severity of the bug has been marked as High.  The only workaround at the moment is to manually upload the service.

View solution in original post

0 Kudos
5 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Jonathan,

This is unfortunately a bug at 10.2, and has been logged, #NIM093766:  When uploading to My Hosted Services, arcpy.UploadServiceDefinition fails with error "000732 Server: Dataset My Hosted Services does not exist or is not supported".].

The severity of the bug has been marked as High.  The only workaround at the moment is to manually upload the service.
0 Kudos
JonathanFarmer1
Deactivated User
Thanks Jake. I guess I will await the first service pack for a fix hopefully.
0 Kudos
AdamTonkin
Deactivated User
Hi Jonathan,

This is unfortunately a bug at 10.2, and has been logged, #NIM093766:  When uploading to My Hosted Services, arcpy.UploadServiceDefinition fails with error "000732 Server: Dataset My Hosted Services does not exist or is not supported".].

The severity of the bug has been marked as High.  The only workaround at the moment is to manually upload the service.


Hi - did this fix make it into 10.2.2 release?  Just checking....
0 Kudos
JakeSkinner
Esri Esteemed Contributor
Hi Adam,

It doesn't look like it has.  You can check the bugs addressed in the coming 10.2.2 release from the following link:

http://downloads.esri.com/support/downloads/other_/1022-IssuesAddressedList.pdf
0 Kudos
DamonPettitt
Frequent Contributor

Do the steps in this blog post (which use ArcGIS.com REST API techniques instead of arcpy.SignInToPortal_server) get around this bug?

Updating your hosted feature service for 10.2 | ArcGIS Blog

0 Kudos