web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / I don't know the cause...
Power Automate
Answered

I don't know the cause of the Filter_array error

(0) ShareShare
ReportReport
Posted on by 127

Hi, All.

 

I want to extract a person with the title "Manager" from the Office365 group.

 

For example...

Manager

General manager

Administrative Manager

 

It is configured like a capture, but I get an error.

a.PNG

The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['jobTitle'], 'Manager')' failed: 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.

 

I don't know the cause.

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi!

    I face the same limitation when using 'contains' operator in the past.

    That is, if the field is empty in one of your records, condition evaluation will crash.

    One potential workaround is to add an intermediate Filter Array just to remove those whose 'Job title' is null, then assign its output as your current filter array input

    Flow_JobTitleNotNull.png

    Hope this helps

  • soooofunny Profile Picture
    127 on at

    Hi.

     

    Holy crap!I didn't know that at all.

    After removing the nulls first, I searched and the error no longer occurs.

     

    Thanks!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard