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 Platform Community / Forums / Power Automate / FormatDate Time Functi...
Power Automate
Unanswered

FormatDate Time Function Null Error

(0) ShareShare
ReportReport
Posted on by 1,059

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
start.jpg

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? 

@Mira_Ghaly 
@v-xida-msft 

Categories:
  • manuelstgomes Profile Picture
    6,643 on at

    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.

    Cheers
    Manuel

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard