"Error message displayed when attempting to activate a Lookup Filter using a formula field that references a Custom Permission: 'The permission does not exist.'"
This issue affects admins configuring Lookup Filters on standard or custom objects in Salesforce Lightning Experience. It occurs when the filter's formula field references a Custom Permission using $Permission logic, triggering a platform-level validation error during activation.
Because Salesforce does not currently support activating Lookup Filters that directly reference Custom Permissions in formula field logic, the following workaround allows you to activate the filter while preserving your intended logic.
1. Temporarily change the formula value to a simple, standard value.
2. Successfully activate the Lookup Filter.
3. Update the formula back to your original logic (using the Custom Permission) after activation.
4. Test the Lookup Filter in your environment to ensure it correctly restricts records based on the Custom Permission as intended.
5. Perform the test in your other sandbox (deactivating and attempting to reactivate) to see if the behavior is consistent across your orgs.
Reference Idea - https://ideas.salesforce.com/s/idea/a0B8W00000GdZTKUA3/usage-of-users-permission-sets-in-formulas-validation-rules-and-lookup-filters
005317925

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.