Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

FormatDate Time Function Null Error

Hi ,

I have this same issue, I have 4 leave types (TimeOff, Annual Leave, Casual, Sick) which user selects and enters the data according to the selected leave type in PowerApps,

I insert the data into SP list by using patch function in which if the user selects LeaveType as "Time Off" then only TimeOff related things are inserted in SP List.


Now, I am running a flow whenever an item is created an email is sent to the manager and then he/she accepts or rejects.


I have used all the fields in the Start and Wait For Approval Step to show the details whichever leave type is selected

The First FormatDateTime expression is for Time Off Date, the last two are Start Date and End Date  used in Leave Types (Annual, Casual and Sick).


So, when the user posts TimeOff record, the start and end date are null in that record, so my flow shows an error.

and this happens with Annual, Casual and Sick, when the user create this, then TimeOff Date goes null.


So, my Flow Run Fails..


Any Help? 


Super User II
Super User II

Re: FormatDate Time Function Null Error

HI @MH3 


Can you please show me the error? I'm sure with that we'll figure it out.


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (7,307)