You need to sign in to do that
Don't have an account?
Sean Oldroyd
validation rule fires on an encrypted field and is throwing a Invalid (null).
Our sandboxes updated to Version: Summer '18 Patch 3.5 on 5/5/18. Since the update an existing validation rule is causing failures when updating the record that the rule is associated with. The rule fires on an encrypted field and is throwing a Invalid (null). A previous known issue I found here is similar but it says it is fixed (https://success.salesforce.com/issues_view?id=a1p30000000jaT3AAI&title=validation-rule-occurring-with-invalid-null-when-org-has-encryption-enabled). I also tried the work around in the known issue, however the rule still throws the error.
The workaround (https://success.salesforce.com/issues_view?id=a1p30000000jaT3AAI&title=validation-rule-occurring-with-invalid-null-when-org-has-encryption-enabled) proposed by Salesforce (set the debug filters for 'Validation' to 'None') works when running Apex tests from the the developper console or when activating debug logs for a user. The remaining problem is that I don't know how to define these filters when running tests from my dev IDE...
All Answers
I have noticed that the validation rules seem to work when on the form, but not when using code.
The workaround (https://success.salesforce.com/issues_view?id=a1p30000000jaT3AAI&title=validation-rule-occurring-with-invalid-null-when-org-has-encryption-enabled) proposed by Salesforce (set the debug filters for 'Validation' to 'None') works when running Apex tests from the the developper console or when activating debug logs for a user. The remaining problem is that I don't know how to define these filters when running tests from my dev IDE...
https://success.salesforce.com/issues_view?id=a1p3A000000nhJ0QAI