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 / How to Prevent Error d...
Power Automate
Answered

How to Prevent Error during Condition Expression Check iwhen CC Field is "Null"

(0) ShareShare
ReportReport
Posted on by 19
I have a power automate flow that is using the conditional expression shown below.
 
 
 
Unfortunately, I am getting an error every time the CC Field is null, as shown below, which is 8 times out of 10. It WILL be null most times, and I need to handle it.
 
 
On the left side, I need to check if the CC field of an email contains a certain value.

In most cases the CC field is null, and that breaks the flow.

This is a very large and complex flow that does many things under many conditions so I cannot break out this CC portion because I will hit a limit.

What can I do on the left side to “handle” the fact the CC will be null 80% of the time so the fact it is null won’t generate hundreds or thousands of errors and prevent the flow from executing?
 
 
Any help, guidance, or suggestions would be greatly appreciated. 
 
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    The Coalesce function can be used to intercept a null value and replace it with a default value or a blank string.  That would keep the condition from failing.
     
    Coalesce(<<cc value>>,"")

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • ACECORP Profile Picture
    19 on at
    @Pstork1 thanks... we are getting closer... but not there yet. When I do that, I get the error message below. 
     
    What am I missing?
     
  • ACECORP Profile Picture
    19 on at
    @Pstork1 -- my bad...  I fixed it.. 
     
    the below was the fix..
     
    Coalesce(triggerOutputs()?['body/ccRecipients'],'')
     
     
    Thanks so much for getting me on the right track!

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard