I have created a custom list using Visual Studio. Now I have a requirement to set unique value to a column. I tried to set EnforceUniqueValue
Property to true
in Schema.xml
, but it is throwing an error while deploying:
ExceptionMessage: This field must be indexed to enforce unique values. Source: AppWeb SourceName: App Web Deployment