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 / Format Date Time Error
Power Automate
Answered

Format Date Time Error

(1) ShareShare
ReportReport
Posted on by 37

Hello everyone, 

 

I have created a schedule flow to automatically send an email if the Delete Date (from an Excel file) is equals to today's date.

I have tried it on a test Excel file and it worked fine.

 

But once I input our working file into the automation, the same error appears again : Unable to process template language expressions for action 'Condition' at line '1' and column '16207': 'In function 'formatDateTime', the value provided for date time string '44348' was not valid. The datetime string must match ISO 8601 format.'.

 

This error message was solved previously by selecting the "ISO 8601" on the DateTime Format of the List rows. I am not sure why it gives this error once more.

phishseng91_0-1622541985136.png


This is how my flow looks like :

phishseng91_1-1622542251122.png
phishseng91_2-1622542272711.png

phishseng91_3-1622542295660.png


The formula i wrote for the Condition is formatDateTime(items('Apply_to_each')?['Delete Date'],'yyyy-MMM-dd') equals to formatDateTime(body('Convert_time_zone'),'yyyy-MMM-dd')

 

Can anyone help me, please?

 

Thank you!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,474 Most Valuable Professional on at

    Hi @phishseng91,


    It looks like in one of your rows the value of the delete date column is 44348 instead of a datetime value. Can you check your delete date column in your working file, how is that formatted?

  • Verified answer
    phishseng91 Profile Picture
    37 on at

    Hello!

     

    Thank you for your response!
    The delete date column is formatted as date on Excel.

    And we did many tryouts but for some reason Power Automate will only read it as the text 44348 instead of the date itself. When we change the cell's format to General on Excel, it shows the exact same number of 44348.

    We have found the solution, though! To enable Power Automate to read the proper dates from Excel, we need to input an expression : 

    if(empty(item()?['Delete Date']),null,addDays('1899-12-30',int(item()?['Delete Date']),'yyyy-MM-dd'))

    We got this from shanebart.com 
  • Community Power Platform Member Profile Picture
    on at

    Genius !!! Thx @phishseng91 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard