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 / Flow error help needed
Power Automate
Unanswered

Flow error help needed

(0) ShareShare
ReportReport
Posted on by 4
I am trying to replicate this(https://www.enjoysharepoint.com/send-birthday-emails-from-excel-using-power-automate/).  But I keep getting this error

Action 'Compose' failed: Unable to process template language expressions
in action 'Compose' inputs at line '0' and column '0': 'In function
'formatDateTime', the value provided for date time string '45561' was
not valid. The datetime string must match ISO 8601 format.'.

This is co-pilots response. However, I have checked and I did it  as the guide did

The error you’re encountering indicates that the formatDateTime
function is still receiving the Excel date serial number (‘45561’)
instead of a properly formatted date string. Let’s address this by
ensuring the date conversion is handled correctly.
Categories:
  • creativeopinion Profile Picture
    10,508 Moderator on at
    When working with dates and times in Excel you need to ensure that you set the DateTime format to ISO8601.
     
    You might be interested in the YT Tutorial linked below. Although my tutorial covers how to work with data in a SharePoint list—you can use the concepts covered in this tutorial to help you build your flow.
     

    In this Microsoft Power Automate tutorial, I’ll show you how to build a flow that will send a Happy Birthday email to a user based on a date column in a SharePoint list. The SharePoint list also contains a column with a Manager’s name which we’ll use to send a three-day and day of reminder to the user’s manager.
    This automation will use the Filter Array action to filter out all SharePoint list items where the user’s birthday is today or in three days. This flow can apply to a variety of scenarios such as:

    📅 Student Birthdays
    📅 Project Due Dates
    📅 Contract/Membership Renewals
    📅 License Expirations
    📅 Client Anniversaries
    ---
    IN THIS VIDEO:
    ✓ How to Send an Email based on a Date Column in SharePoint
    ✓ Using the Recurrence Trigger in Power Automate
    ✓How to Use the Filter Array Action with multiple conditions
    ✓ How to Get Dynamic Content from a Filter Array Action
    ✓ How to Get a Date Three Days from Today
    ✓ How to Create a Dynamic Date Based on utcNow()
    ✓ How to Return a Count of Items
    ✓ How to initialize and set a variable
    ✓ How to use the Send an Email (V2) action
    ✓ How to send test emails
     
    Hope this helps!
     
  • FO-26092253-0 Profile Picture
    4 on at
    Thank you.

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