In my sandbox, Rollup helper managed package has been used.
When try to encrypt Contact Name field by Platform encryption, System is unable to encrypt because in one of the classes is having SOQL query with WHERE clause using Contact Name.
Encryption is now enabled on one or more fields. Encryption enablement has failed for the following fields:
Contact.Name:
Apex Class: PS_Resource_Manager_Behaviour, line 1831, column 28:
SELECT Count() FROM Contact WHERE LastName = 'Joe'
^
ERROR at Row:1:Column:35 field 'LastName' can not be filtered in a query call Apex Class: PS_Resource_Manager_Behaviour, line 1832, column 31: SELECT Count() FROM Contact WHERE Name LIKE '%Test Record%' ^ ERROR at Row:1:Column:35 field 'Name' can not be filtered in a query call
The API version of PS_Resource_Manager_Behaviour is 38.
What could be the workaround of this issue. We need to encrypt this field.