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 Automate
Answered

skip blank column

(0) ShareShare
ReportReport
Posted on by 11

Hi All

 

I currently have a site with 10 items with 5 coloumns. I have a flow that will email me when an item is expiring. The problem here is that some items in the columns do not need data. So what happens is the flow fails if it does not contain data. How do i bypass that item and contnue to the next. it will continue and then fail say maybe by the 3 one that does not have data in that 1 column.

 

Appreciate any help

 

Thanks

 

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    Can you post a screenshot of your Flow?

  • Bones52 Profile Picture
    11 on at

    Hi Thanks for taking the time to get back to me. Pics below. Thanks

    I have added the condition below.

    In the contract_x0020_end, some contracts done have end dates. thats where it fails.

     

    @less(formatDateTime(item()?['Contract_x0020_End'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), 30), 'yyyy-MM-dd'))

     

    Capture1.JPGCapture2.JPG

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Bones52,

     

    Do you mean that the flow would fail when the Contract End column of an item is empty?

     

    If you want to skip the item whose Contract End column is empty within your flow, you could consider take a try to add a condition to check if the Contract End column is empty. If the Contract End column is empty, don't send an expiring email to you.

     

    I have made a test on my side and please take a try with the following workaround:

    13.JPG

     

    • Within "Apply to each" action, add a Condition, click "Edit in advanced mode", type the following formula:

     

    @empty(items('Apply_to_each')?['Contract_x0020_End'])

     

    or 

     

     

    @empty(item()?['Contract_x0020_End'])

     

     

    • Within "If/no" branch of Condition, add a "Condition 2" action, click "Edit in advanced mode", type the following formula:

     

    @less(formatDateTime(item()?['Contract_x0020_End'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), 30), 'yyyy-MM-dd'))

    Within "If/yes" branch of Condition 2, add a "Send an email" action.

     

     

     

    Please take a try with above solution that I provided, then let me know if it could solve your problem.

     

    Best regards,

    Kris

  • Verified answer
    Bones52 Profile Picture
    11 on at

    Brilliant

    THANK YOU very much for this. Working Smiley Very Happy

     

    Thanks Again

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard