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 / Date Time Error When C...
Power Automate
Answered

Date Time Error When Creating HTML Table

(3) ShareShare
ReportReport
Posted on by 14
Hello, 
 
My flow was working perfectly, and I haven't made any changes to it in 2 weeks. Upon running it yesterday it gave me an error where it didn't before when creating the HTML table to send. The error reads: The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'. I also have another flow that runs the same data that is set up the same way that works fine. Has anyone else run into this problem or have a fix? I am using the expression: formatDateTime(item()['NextDueDate'], 'MMM d, yyyy')
 
Thanks in advance!
 
 
 
Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at
    Hi,
     
    The root cause here is for that row, the NEXTDUEDATE value is blank and why you cannot format it.  Please go to that row or wherever your data is and review.  Alternatively, you can use a quick if statement there, if equals empty true, use NA, else format your date expression.
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
  • Beau Myrick Profile Picture
    14 on at
    My NextDueDate column contains data so this can't be the cause.
  • Verified answer
    trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at
    Hi,
     
    According to the screenshot you posted, that row's value is blank.  Please review your error message.  "...The string '' was not valid."
     
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
     
  • Beau Myrick Profile Picture
    14 on at
    There was an empty row at the very bottom of my excel sheet! Thank you very much!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard