Potential Bug with Model Conditions/ Grouping Logic?

Hi there,

I’ve taken your updated XML and tried it in my own environment. I ran into the same issue with the &, but was able to fix that following Luzie’s recommendations.

Focusing on the “OR8” that shouldn’t be in the query: What happens when you remove that 8th condition from your model (and take out the reference to it in the logic)? I see you’ve got an OR in one of your other models, and in that same model too, and it’s not causing any issues, so I’m wondering if there’s something about that particular condition #8 that’s relevant to the problem. Specifically, in the original screenshot, condition 8 says End_Date__c needs to be null.

If removing the condition prevents the problem, then my next recommendation would be to try adding it back to see if that resolves the behavior.