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 / 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,073 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard