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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / formatdatetime error w...
Power Automate
Answered

formatdatetime error with if formula

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am trying to create a table with power automate flow but I face some issues when I run the testing.

There is the error reason:

Unable to process template language expressions in action '附加至字串變數_2' inputs at line '0' and column '0':

'In function 'formatDateTime', the value provided for date time string '44841' was not valid.

The datetime string must match ISO 8601 format.'

LVMH_Kira_0-1664445037778.png

 

For column is empty, it shows successfully null in table.

But for the column with date information, it shows error instead.

 

Anyone how to fix this? Thanks a lot!

 

 

 

 

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    Try changing the advanced options in your Excel action to return dates in ISO 8601 format.

     

    ExcelDateFormat.png

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • Community Power Platform Member Profile Picture
    on at

    yes, I already chose ISO 8601 format.

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    The output that you are getting is 44841 which is serial number format. So you could convert that by hand manually, but you should be getting ISO dates out. You can see this short video I did on it here:

     

    https://youtube.com/shorts/E67YoByn9eA

     

    Blog post here: https://www.tachytelic.net/2020/11/convert-excel-dates-power-automate/

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    Your format is working. Thank you @Paulie78 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard