Problem: Web maps containing versioned data fail to download for offline use
Attempting to download a web map containing ArcGIS Server feature services for offline use with Collector for ArcGIS fails, and returns the error message:
The operation couldn't be completed. Error in obtaining version for Sync.
The map 'Map_Name' failed to download with the message: Error in obtaining version for Sync.
The following entry is found in the server logs:
When users download a web map containing versioned data for offline use, the Create Replica call is used to create a local copy of the data with a version name. By design, the version name of the replica also includes the user name of the user (editor) who downloads the web map.
When using the Create a version for each User option, the version created is specific to each user who takes the map offline. The version name created is composed of the user name and the feature service name separated by an underscore. Since the service name can be truncated to one character, a limit of 28 characters is allowed for the user name to bring the total number of characters in the version name to 30 (including the underscore).
The default Create a version for each Downloaded Map option only allows a limit of only 14 characters in the user name because the Downloaded Map option also includes a 13-character unique ID in the version name. For more information, refer to ArcGIS for Server Help: Offline maps and versioned data.
When downloading the web map for offline use, ensure the user name is not too long. Editors with long user names may change their user name temporarily to allow the download to complete successfully before editing.
Since this issue is specific to the 10.3.1 version of ArcGIS for Server, upgrade to ArcGIS 10.4 for Server to prevent this issue from occurring.