Select to view content in your preferred language

UploadServiceDefinition_server function changed overnight?

2478
1
07-24-2013 04:05 PM
PeterTimmers
Frequent Contributor
We've had a number of nightly updates on AGOL and was there a change the other day?

Previously if you were overwriting an existing service you didn't need to republish the sharing.

http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000001p000000

The bit about OVERRIDE_DEFINITION  and defaulting to USE_DEFINITION.

arcpy.UploadServiceDefinition_server(sd, "My Hosted Services", service) should just USE_DEFINITION right?
Now I've just changed it to
arcpy.UploadServiceDefinition_server(sd, "My Hosted Services", service,"", "", "", "", "OVERRIDE_DEFINITION","SHARE_ONLINE","PUBLIC","SHARE_ORGANIZATION", "")
and it's all working. 

Just everything stopped working for a number of hours while people couldn't get the map services.
Tags (2)
0 Kudos
1 Reply
MikeMinami
Esri Notable Contributor
We have looked at this from many angles and don't see anything that has changed. So I don't know why your script is working differently. If you don't specify any options, then it should default to Use Definition, which means the sharing set in the SD file being uploaded will be used. Perhaps the sharing specified for your SD file is different than exists on ArcGIS Online?

Thanks,


Mike
0 Kudos