User attempts to expand an auto filing folder and gets the following error:
The query syntax is invalid. This is typically because it was created in a previous version of the software and is referencing obsolete or transformed data. Please check the criteria to ensure that it is correct and save the query so that it gets stored in the new format.
This is a known issue in versions 16.x.x. Bentley internal Defect 1006750 refers. One cause of the error is that the $Session.Person.Id variable is used in the auto filing EQL.
Remove the WHERE clause which refers to the $Session.Person.Id variable.