laptop and a wrench

Bug

Unable to publish hosted services using the ArcPy FeatureSharingDraft script if the file path or project name contains special characters (characters from other languages such as Chinese characters).

ArcGIS API for Python
Bug ID Number BUG-000168144
SubmittedJune 7, 2024
Last ModifiedJuly 8, 2024
Applies toArcGIS API for Python
Version foundN/A
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusAs Designed

Additional Information

When creating a service definition draft file (.sddraft), the aprx file name and location are written inside. The error happens because the Python XML Document Object Model (DOM) module does not support special characters. This is not an ArcPy issue, but the expected behavior of the specific Python module. Use a different module that supports non-English characters.

Steps to Reproduce

Bug ID: BUG-000168144

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options