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

Community site session details

Session Id :
Power Automate
Unanswered

Error in Filter Array

(0) ShareShare
ReportReport
Posted on by 36

Hello everyone,

I'm trying to filter an array extracted from an excel file but I'm getting this error: 

The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['Negotiator ~1 Contact'], triggerBody()['text'])' 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'.'.

What means this error?

How can I solve this? 

ElisaArtalejo_0-1693909431729.png

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Error in Filter Array

    Hi @ElisaArtalejo 

     

    Pls share the screenshot of filter condition in edit mode.

     

    Thanks

  • ElisaArtalejo Profile Picture
    36 on at
    Re: Error in Filter Array

    sure: 

    ElisaArtalejo_1-1693910900243.png

     

    ElisaArtalejo_0-1693910834952.png

    @contains(item()?['Negotiator ~1 Contact'], triggerBody()['text'])

    thanks for answering!

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Error in Filter Array

    Hi @ElisaArtalejo 

     

    It looks like filter action could not read the column 'Negotiator ~1 Contact' from the excel sheet. Pls check the column name 'Negotiator ~1 Contact' in input excel sheet or share the actual column name in the source excel sheet.

     

    Thanks

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Error in Filter Array

    Hi @ElisaArtalejo,

     

    Pls try this expression, assuming the column name is 'Negotiator ~ Contact':

    @contains(item()?['Negotiator ~ Contact'], triggerBody()['text'])

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard