4

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

<fields>
    <fullName>Field__c</fullName>
    <externalId>false</externalId>
    <label>Field</label>
    <length>255</length>
    <maskChar>asterisk</maskChar>
    <maskType>all</maskType>
    <required>false</required>
    <trackFeedHistory>false</trackFeedHistory>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>EncryptedText</type>
    <unique>false</unique>
</fields>

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?

5

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.