web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : KVaQIT/PO8zD0MmeaS4Bka
Power Automate - Building Flows
Answered

How do I configure my Flow to handle the situation when the Date in XLS is blank?

Like (0) ShareShare
ReportReport
Posted on 21 Nov 2023 09:45:04 by 76

Hi,

 

My Flow reads an XLS and writes to a List.  When copying a Date field, I come across this problem.  When the Date in XLS is valid, it copies fine.  When the Date in XLS is blank, the Flow breaks.  How do I configure my Flow to handle the situation when the Date in XLS is blank?

 

Thank you!

I have the same question (0)
  • Verified answer
    fchopo Profile Picture
    7,972 Moderator on 21 Nov 2023 at 10:21:57
    Re: How do I configure my Flow to handle the situation when the Date in XLS is blank?

    Hi @925stuart 

    You could use an expression like the following:

    if(equals(item()?['StartDate'], null), '', formatDateTime(item()?['StartDate'],'yyyy-MM-dd'))

    Where start date is the date column.

    You could also use Coalesce function: Blank, Coalesce, IsBlank, and IsEmpty functions - Power Platform | Microsoft Learn

    Hope it helps!

    Ferran

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete