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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow that sends out em...
Power Automate
Unanswered

Flow that sends out emails

(0) ShareShare
ReportReport
Posted on by

Hi I have a flow that attaches 2 unique files into an email then sends a message to 80+ recipients, all works fine.

The issue is that when it is complete it returns a failed message as if it hasn't worked, but it has!

Any ideas? This is the message:

The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['Name'], items('Apply_to_each_2')?['field_0'])' failed: 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Null' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'.

 

Thanks

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Do you have any values that are Null within that condition? If so, you should put an empty() check within the expression so that if a value is null, it does something else instead of trying to compare null to a string.

     

    So like:

    contains(item()?['Name'],if(empty(items('Apply_to_each_2')?['field_0']),'NoField',items('Apply_to_each_2')?['field_0']))

     

    I don't know exactly how you need to arrange it, but try using empty somewhere as a way to deal with null values.

     

    I don't know if this will solve your problem, but I would test the approach to see if it works.

  • VictorIvanidze Profile Picture
    13,081 on at

    Show your flow.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard