0

I have a hosted feature service that I overwrite on a nightly basis, this all works fine however I am having issues setting the parameter for "allow_exporting"

I set the value to True however after the update when I go into ArcGIS Online under item details the box is unchecked for allowing others to export.

I even set the parameter as allow_exporting = True but it still does not work. anyone see an issue?

arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, sd_fs_name, 'MY_HOSTED_SERVICES', 'FEATURE_ACCESS',"my folder name", True, True, True, allow_exporting=True)

and also

arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, sd_fs_name, 'MY_HOSTED_SERVICES', 'FEATURE_ACCESS',"my folder name", True, True, True, True)

both with the same results.... the document for this function is HERE

1

I discovered a BUG in ArcGIS Python API. This issue is now classified as:

  • **BUG-000116407 [Hosted Feature Service Settings (Export, Sync, and Edit) always set to False (unchecked) when overwriting a service using the CreateWebLayerSDDraft function in the ArcGIS API for Python].**

There is no workaround for this issue that I have discovered, other than manually enabling these options in ArcGIS Online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.