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 / Error: Action 'Conditi...
Power Automate
Unanswered

Error: Action 'Condition' failed: 'String' and 'Boolean' incompatible

(0) ShareShare
ReportReport
Posted on by
This is my flow 
 
when a row is added to a table (Table1) then check Status = Pending, if Pending send email alert. (frequency is run once a week)
 
Below is the error encountered:
 
Action 'Condition' failed: Unable to process template language expressions for action 'Condition' at line '0' and column '0': '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 'Boolean' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'.
 
 
This is the condition
 
In the sharepoint there is an excel file column name Status
So if the status in the cell is Pending 
then the actions continue - to send email alert.
 
In the Status column O (after column N), it has auto formula:
example:
=IF(N27<>"","Closed","Pending")
 
The format for column O is text. 
 
 
Please advise what went wrong with the condition, everything looks ok to me. 
 
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at
     
    The error is happening because you are trying to compare two values of different type under a condition: in this case, the value from your Excel column (a text, which can be either "Closed" or "Pending") and the outputs of your contains formula (a boolean, which can be either true or false). 
     
    If I understood correctly, you want the condition to be true if the Status column from your Excel table is equal to pending. To achieve it, you can simply change the dropdown to is equal to and the right-side input to Pending:
     
     
    Then your flow will run the If yes block only if the Status column value is equal to Pending (and not if it is equal to Closed). :)
     
    To learn more about conditions in Power Automate, you can also refer to this article: http://digitalmill.net/2023/11/05/utilizando-condicoes-ifs-em-power-automate/
     
    Let me know if it works for you or if you need any additional help!
    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.
     

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