To check your excluded employee query, please do as follows:
Go to Query Setup and select the query ID.
Click the three-dotted button.
Check the employee's name and remove any extra spaces in between.
Save the query and click Apply.
If you cannot save the query, copy the scripts, delete this query.
Create a new Query ID, paste the scripts, save, and try again.
