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

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,491 Super User 2026 Season 1 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

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 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard