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 Automate
Answered

ISO 8601 format error

(0) ShareShare
ReportReport
Posted on by 4

Power automate shows me the following error: In the "addDays" function, the value that has been provided for the datetime string isn´t valid. The datetime string must match ISO 8601 format.

 

The error ocurrs when the following control is executed: 

formatDateTime(addDays(variables('Fecha'),14),'yyyy-MM-dd') is less or equal than formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ssZ').
 
The flow has several empty spaces in 'Fecha' variable.
  • Verified answer
    fraenK Profile Picture
    2,125 on at

    You've posted your question in the desktop forum, not cloud flows. 😉

     

    You need to format the content of variables('Fecha') according to ISO 8601, before using addDays.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard