function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jirong HuJirong Hu 

Indexed cannot be enabled for Deterministically encrypted fields without Unique - Case Sensitive attribute.

We are using the following command to deploy changes to SF org, and it works well:
"F:\sfdx\bin\sfdx" force:mdapi:deploy -u ${p:SF_ORG_ALIAS} -d force-app-mdapi --testlevel RunLocalTests --json -w 45 –g

But after we enabled Shield Platform Encryption,
https://help.salesforce.com/s/articleView?id=sf.security_pe_deterministic.htm&type=5, we are getting this error:
Indexed cannot be enabled for Deterministically encrypted fields without Unique - Case Sensitive attribute.

Any idea what's wrong?