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!
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
Michael E. Gernaey
783
Super User 2025 Season 2
Tomac
515
Moderator
trice602
299
Super User 2025 Season 2