Expand my Community achievements bar.

Got questions about Workfront Governance? Join our upcoming Ask Me Anything session on February 12th!
SOLVED

Why is my empty array still returning a value?

Avatar

Level 3

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:

Eric_D_Miller_0-1736783066960.png

 

and here is my filter:

Eric_D_Miller_1-1736783066968.png

 

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:

Eric_D_Miller_2-1736783066970.png

 

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

Eric_D_Miller_3-1736783066961.png

 

 

 

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 1

Hi @Eric_D_Miller,

The value returned looks like it is an empty array 

Eric_D_Miller_3-1736783066961.png

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.

danperkins_1-1736810069632.png

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

Hopefully that helps with what you need.

Best regards, 

Dan

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Hi @Eric_D_Miller,

The value returned looks like it is an empty array 

Eric_D_Miller_3-1736783066961.png

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.

danperkins_1-1736810069632.png

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

Hopefully that helps with what you need.

Best regards, 

Dan