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

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
    15,402 Super User 2025 Season 2 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
    15,402 Super User 2025 Season 2 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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard