Why is my empty array still returning a value? | Community
Skip to main content
Eric_D_Miller
Level 5
January 13, 2025
Solved

Why is my empty array still returning a value?

  • January 13, 2025
  • 1 reply
  • 509 views

Hello,

 

I have a scenario in which I have an empty array passing through a filter despite the filter asking that the value must exist. Can someone point out what I have wrong in my array?

 

Here is my array:

 

and here is my filter:

 

With a second filter/route if the value does exist


Now here is a the scenario run in a way that would not include any values from those fields:

 

As you can see I have made no entry for those values. Despite that the bundle still passes through my "exists" filter.

 

 

 

Any ideas here? I feel like I am missing something obvious. Thank you in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by danperkins

Hi @eric_d_miller,

The value returned looks like it is an empty array 

And the filter is looking for a value that is not null. To make this work, you'll want to update the filter operator. In the filter, select the operator, then scroll down and select "Array length greater than"*. Next, put a "0" (zero) in the value.

* You could also use the operator: "Array length not equal to"

Hopefully that helps with what you need.

Best regards, 

Dan

 

 

1 reply

danperkins
danperkinsAccepted solution
Level 2
January 13, 2025

Hi @eric_d_miller,

The value returned looks like it is an empty array 

And the filter is looking for a value that is not null. To make this work, you'll want to update the filter operator. In the filter, select the operator, then scroll down and select "Array length greater than"*. Next, put a "0" (zero) in the value.

* You could also use the operator: "Array length not equal to"

Hopefully that helps with what you need.

Best regards, 

Dan