The Invalid Query error is issued in the following situations:

Launch the Query condition editor and change this condition in order to return a boolean value.

Launch your Simple query editor and add, at least, one entity to your query.

Fix the structures involved in your simple query or use other structure(s) that are not nested.

Edit this simple query and change its conditions in order to include at least one Boolean operator.

EntityA.Attribute1 = EntityB.Id

EntityA.Attribute2 = EntityB.Id (EntityA with or without EntityB)

i.e. respectively, an inner join and an outer join, Service Studio presents this error message.

Edit your join conditions and assure that the joins involving these entities are of the same type.

Edit the Simple Query and put each group of Foreign Entities in its separate Simple Query - the groups are detailed in the error message to help you. If you have joins between Foreign Entities that have to be separated, join manually the result sets of their Simple Queries.

You can also contact your Service Center administrator in order to check if the Foreign Entities you are using are located in the correct databases.

Clicking the symbol will take you directly to the parent action flow. Open the Query editor to find the problem condition and then the Query Condition Editor where the Validate button gives you the precise cause of the problem.

See Also

Simple Queries | Simple Query Conditions | Simple Query Entities | Simple Query Structures | Query Condition Editor | About Error Messages