We are using a role filter to hide PII from the users of the system. Whilst using role filters received "Internal Server Error" when tried to save the role filter query.
Is there a limit to the size of a query you can write in a role filter?
This can happen due to the length of your query. 10,240 is the maximum allowed limit for the characters in a query
You can count the characters limit by using letter count and see the characters in your query is exceeding the maximum allowed limit.
You will then have to modify your query to be less than 10,240 characters.