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 not extracting Da...
Power Automate
Suggested Answer

Flow not extracting Date from Excel to Planner

(0) ShareShare
ReportReport
Posted on by 79

Hi everyone,

I’m having trouble with a Power Automate flow that transfers tasks from an Excel sheet to Microsoft Planner. Specifically, I’m encountering an issue with the dueDateTime field not being in the correct format. I’ve tried several methods to fix this, but nothing seems to work. Here’s a detailed explanation of my issue and what I’ve tried so far:

I’m using Power Automate to:

  1. Read tasks from an Excel table (stored in OneDrive for Business).

  2. Create corresponding tasks in Microsoft Planner.

The issue arises when trying to set the dueDateTime field in the "Create a task" action. Excel stores dates as serial numbers (e.g., 45772), but Planner requires dates in the ISO 8601 format (e.g., 2025-12-31T00:00:00Z).

The error I’m getting is:

Action 'Create_a_task' failed: The 'inputs.parameters' of workflow operation 'Create_a_task' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'body/dueDateTime' is required to be of type 'String/date-time'. The runtime value '"45772"' to be converted doesn't have the expected format 'String/date-time'.
  1. Using the addDays Expression in a "Compose" Action:

    • I added a "Compose" action with the following expression to convert the Excel serial number to a date-time string:plaintextCopyaddDays('1899-12-30', int(items('Apply_to_each')?['DueDate']), 'yyyy-MM-ddTHH:mm:ssZ')

    • However, the flow still fails, and the error suggests that the raw expression is being passed instead of the evaluated result.

  2. Manually Formatting Dates in Excel:

    • I tried formatting the date column in Excel as a date (instead of a number), but Power Automate still reads it as a serial number.

  3. Using Dynamic Content Directly:

    • I attempted to map the Excel date column directly to the dueDateTime field in the "Create a task" action, but this resulted in the same error.

  4. Checking Group ID and Plan ID:

    • I verified that the Group ID and Plan ID in the "Create a task" action are correct by using the "List plans" action.

  1. Trigger: Manually trigger a flow.

  2. Action 1: List rows present in a table (Excel).

  3. Action 2: Apply to each (loop through each row).

    • Condition: Check if Due Date is not empty.

      • Yes:

      • No: Skip or handle blank dates.

  • Why is the "Compose" action not evaluating the addDays expression correctly?

  • Is there a better way to convert Excel serial numbers to ISO 8601 date-time strings in Power Automate?

  • Are there any additional steps or actions I need to include to ensure the date is formatted correctly?

Any guidance or suggestions would be greatly appreciated! Thank you in advance for your help.

Hi everyone,

I’m having trouble with a Power Automate flow that transfers tasks from an Excel sheet to Microsoft Planner. Specifically, I’m encountering an issue with the dueDateTime field not being in the correct format. I’ve tried several methods to fix this, but nothing seems to work. Here’s a detailed explanation of my issue and what I’ve tried so far:

I’m using Power Automate to:

  1. Read tasks from an Excel table (stored in OneDrive for Business).

  2. Create corresponding tasks in Microsoft Planner.

The issue arises when trying to set the dueDateTime field in the "Create a task" action. Excel stores dates as serial numbers (e.g., 45772), but Planner requires dates in the ISO 8601 format (e.g., 2025-12-31T00:00:00Z).

The error I’m getting is:

Hi everyone,

I’m having trouble with a Power Automate flow that transfers tasks from an Excel sheet to Microsoft Planner. Specifically, I’m encountering an issue with the dueDateTime field not being in the correct format. I’ve tried several methods to fix this, but nothing seems to work. Here’s a detailed explanation of my issue and what I’ve tried so far:

I’m using Power Automate to:

  1. Read tasks from an Excel table (stored in OneDrive for Business).

  2. Create corresponding tasks in Microsoft Planner.

The issue arises when trying to set the dueDateTime field in the "Create a task" action. Excel stores dates as serial numbers (e.g., 45772), but Planner requires dates in the ISO 8601 format (e.g., 2025-12-31T00:00:00Z).

The error I’m getting is:

Image

Image

Edit: Does anyone know how to transfer tasks from Excel to Planner

Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,062 Super User 2026 Season 1 on at
    If I am understanding correctly, you need to convert the Excel serial date to the ISO8601 date format. If so, use this expression: addDays('1899-12-30',int(triggerBody()['datefield' ]),'dd-MM-yyyyThh:mm:ssZ')  
     
    I don't think Planner uses the time portion, you may just need addDays('1899-12-30',int(triggerBody()['datefield' ]),'dd-MM-yyyy') 
     
    Replace the highlighted text with the value from Excel in the dynamic content.
  • TheFlowState Profile Picture
    79 on at
    I tried that and it still does not work.
  • Suggested answer
    David_MA Profile Picture
    14,062 Super User 2026 Season 1 on at
    Sorry, I don't know what I was thinking, the correct expression would be addDays('1899-12-30',int(triggerBody()['datefield']),'yyyy-MM-ddThh:mm:ssZ')
     
    The green highlights what you need to change. I had this expression written down in OneNote and must have needed it for the date format I used below and did't even notice it (yyyy-MM-dd is the ISO date format).
     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard