# Is collectionCondition filter broken? (Advanced Analytics and QueryOptions)

**URL:** <https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [May 20, 2026, 3:27pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844 "2026-05-20T15:27:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelborrego](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/angelborrego/32/21987_2.png) [@angelborrego](https://developer.sailpoint.com/discuss/u/angelborrego)\
**Post date:** [May 20, 2026, 3:27pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844/1 "2026-05-20T15:27:28Z")

</div>

## Which IIQ version are you inquiring about?

_8.4p3_

## Share all details about your problem, including any error messages you may have received.

Hi everyone!

I’ve noticed an issue when using a specific filter in Advanced Analytics: it returns **0 identities** , even though it previously worked as expected.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/d/b/db72b99f5dd667162cc9c56d3fca925c0eda9414.png)

A few weeks ago—before upgrading to **SailPoint IdentityIQ 8.4** —this exact same filter produced correct results. What’s particularly strange is that the problem only occurs when the application name is **“Active Directory”**. If I use any other application name, the filter works without issues.

To rule out UI-related problems, I also tried replicating the query using **QueryOptions within a rule** , but I’m getting the same outcome: **0 identities found** \*.\*

![image](https://global.discourse-cdn.com/sailpoint/original/3X/1/0/102dd3c2be9fe2e593ccbd4a740b2933b1a0c19d.png)

Has anyone else experienced something similar after upgrading to 8.4?  
Or could this be expected behavior or a configuration change I might be missing?

Thanks in advance for any insights!

---

<div class="post-metadata">

**Author:** ![neel193](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neel193/32/34038_2.png) [@neel193](https://developer.sailpoint.com/discuss/u/neel193)\
**Post date:** [May 20, 2026, 4:24pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844/2 "2026-05-20T16:24:19Z")

</div>

@angelborrego Just for the testing, could you please try updating the appname from Active Directory to something else like AD and see if it works or not.

Also, I tried below code and is working for me:

```auto
  QueryOptions qo = new QueryOptions();
  Filter f1 = Filter.eq("links.application.name", "PRISM");
  
  qo.addFilter(f1);
  
  return context.countObjects(Identity.class, qo);

```

---

<div class="post-metadata">

**Author:** ![drosenbauer](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/drosenbauer/32/3381_2.png) [@drosenbauer](https://developer.sailpoint.com/discuss/u/drosenbauer)\
**Post date:** [May 20, 2026, 4:35pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844/3 "2026-05-20T16:35:04Z")

</div>

Yes it is, in some circumstances. Here’s my post about it from three years ago -

> [@Filter collectionCondition appears to be broken?](https://developer.sailpoint.com/discuss/t/filter-collectioncondition-appears-to-be-broken/11949):
>
> Is anybody else seeing some odd behavior with Filter.collectionCondition? Specifically, it doesn’t seem to be joining only once on the table, but rather many times. This is the example query from the Filters and Filter Strings documentation page on Compass: links.collectionCondition("application.name == \"AD\" && privileged == \"true\"") With HQL debugging on, this renders as follows: select identityAlias.id, identityAlias.name from sailpoint.object.Identity identityAlias inner join i…

---

<div class="post-metadata">

**Author:** ![sanjaysutarc](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sanjaysutarc/32/37764_2.png) [@sanjaysutarc](https://developer.sailpoint.com/discuss/u/sanjaysutarc)\
**Post date:** [May 20, 2026, 5:29pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844/4 "2026-05-20T17:29:06Z")

</div>

Is this happening in production environment where you might have lot of accounts across multiple application.

I generally dont use negative condition since they dont perform efficiently on DB query side.

When you say the same method works for other application other than “Active Directory” do you see any lag in response when you run it for other app Vs “Active Directory” (just suspecting if its timing out).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2026, 5:29pm UTC](https://developer.sailpoint.com/discuss/t/is-collectioncondition-filter-broken-advanced-analytics-and-queryoptions/209844/5 "2026-07-19T17:29:16Z")

</div>

Closed on July 19, 2026, 5:29pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
