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 error cannot be f...
Power Automate
Answered

flow error cannot be fixed - moving email to an inbox folder

(1) ShareShare
ReportReport
Posted on by 4
Hi all, 
can you help me? I'm setting up a flow where all emails coming from external senders, should be moved to a specific inbox folder. this is the error: 
The input parameter(s) of operation 'Condition' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Condition'. 
How to fix: 1.Click on the "Condition" action in your flow. 2.Review the condition statement. Make sure it checks if the email sender does not contain "@DOMAIN.COM". 3.Use the dynamic content picker to select the sender field and type "@DOMAIN.COM" in the comparison. 4.Save your changes and test the flow again.
 
I've checked the condition and it is correctly set-up. 
thanks for your help! Elena 
Categories:
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
    Hi @EG-28040853-0 (Elina),
     
    Why this error happens (even when the condition “looks” correct)
    The Condition action breaks when:
         You compare complex objects (like From or Sender) instead of a string
         Or you mixed dynamic content + manual text in a way Power Automate can’t parse
    Most commonly, people use “From” instead of the sender email address, which causes:
         invalid expression(s)
     
    Correct way to check for external senders (recommended)
    Step 1: Use the Sender email address field
    Do NOT use:
         From
         Sender
         Address (object)
    Use From (Address) or Sender email address (string)
     
    Step 2: Use Advanced mode in the Condition
    Click Condition → Edit in advanced mode
    Paste exactly this expression:
         @not(contains(triggerOutputs()?['body/from/emailAddress/address'], '@domain.com'))
    Replace @domain.com with your internal domain
    This avoids invalid object comparisons
     
    Alternative (Safe UI Method – no advanced mode)
    If you prefer the basic UI:
    Condition setup
         Left value: From (Address)
         Operator: does not contain
         Right value: @domain.com
    If this still errors, switch to advanced mode (above). The UI is buggy for email objects.
     
    Move email action (after condition)
    In the Yes / True branch:
         Use Move email (V2)
         Folder: your target external-email folder
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog:
     https://sunilpashikanti.com/posts/
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard