laptop and a wrench

Bug

The error message,  "Validation failed: Field does not contain unique values. Remove duplicates and try again" is returned while applying unique value constraints to a field in a hosted feature layer in ArcGIS Enterprise.

Portal for ArcGIS
Bug ID Number BUG-000156304
SubmittedMarch 4, 2023
Last ModifiedMay 13, 2025
Applies toPortal for ArcGIS
Version found11.0
Operating SystemWindows Server
Operating System VersionN/A
StatusIn Product Plan

Workaround

When creating an index programmatically, make sure the name property is included in the addToDefinition payload. For example, {"indexes":[{"name":"test_index","fields":"state_name","isUnique":true,"description":"Field properties"}]}.

Steps to Reproduce

Bug ID: BUG-000156304

Software:

  • Portal for ArcGIS

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