Today, we upgraded from ArcGIS Enterprise 11.0 to 11.1 and receive the following error on our iOS devices:
04.05.23 10:56 Layer (LAYERNAME) failed to load with error: Error Domain=com.esri.arcgis.runtime.error Code=2 "Invalid argument." UserInfo={NSLocalizedFailureReason=UTF8 contains invalid characters, NSLocalizedDescription=Invalid argument., Additional Message=UTF8 contains invalid characters}
I found out, that the initial loading of the map worked without issue. However, after subsequent reloading of the map and restarting the app, some layers could not be fetched.
I narrowed down the issue to Hosted Feature Services. Regular FS and Map Services were not concerned afaik. I noticed that only Hosted Feature Service layers are facing the issue, where the layer name contains special characters. By this, I mean the layer name exposed on the Rest interface. You can also rename the non-special-character layer with special characters in the map config (“override”), but this does not produce the error. The Hosted Feature Service may also contain special characters; Field Maps can handle it well.
After renaming the service layer in the Admin Rest API the problem does not occur anymore.
Is this a known behavior?