I defined an encrypted text field with a length of 255 and deployed it to my org.


For some reason, I got an error message saying:

Object__c.Field__c Custom Field 73 13 Invalid length, maximum is: 255

although clearly, the field length is set to 255.

enter image description here

Does anyone know how to resolve this deployment issue?

1 Answer 1


Maximum length of text encrypted field is 175. Salesforce just shows incorrect error message

you can read it here

Are limited to 175 characters because of the encryption algorithm.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .