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 / String/date-time issue
Power Automate
Unanswered

String/date-time issue

(0) ShareShare
ReportReport
Posted on by 113

Hi all,

Read a zillion posts but could not make it work...

My excel has a DueDate column formated as dd/mm/yy. When using that in setting a Due Date for a Planner Task, I get an error saying

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 '"31/12/20"' to be converted doesn't have the expected format 'String/date-time'.

Could anyone pls give some clear instructions on that?

 

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,424 Moderator on at

    This is so well covered on this forum, check this first:

    https://www.tachytelic.net/2020/11/convert-excel-dates-power-automate/

    I guess the expression you want is something like:

     

    addDays('1899-12-30', int(item()['Date']), 'yyyy-MM-dd')

     

    But you need to substitute item()['Date'] with your own value from Excel.

    Post details of your flow and we will figure it out

     

  • ThimiosSp Profile Picture
    113 on at

    Thank you @Paulie78,

     

    The expression I'm using is 

    addDays('1899-12-30', int(item()['DueDate_Formatted']), 'dd-MM-yy')
    where DueDate is my Excel column formatted as Date (appears as DueDate (Formatted) in content).
     
    The error I get now is
    Unable to process template language expressions in action 'Initialize_variable' inputs at line '1' and column '15570': 'The template language expression 'addDays('1899-12-30', int(item()['DueDate_Formatted']), 'dd-MM-yy')' cannot be evaluated because property 'DueDate_Formatted' cannot be selected.
  • Paulie78 Profile Picture
    8,424 Moderator on at

    It is simply saying that you don't have the field DueDate_Formatted within the current scope of whatever you are in. Are you in a loop when executing this? Maybe you just need:

    addDays('1899-12-30', int(outputs('DueDate_Formatted')), 'dd-MM-yy')'

    But really it is just a guess based on what you put. What is DueDate_Formatted? 

  • ThimiosSp Profile Picture
    113 on at

    DueDate is the column from Excel in need to use. 

    2.png 

     

    'DueDate_formatted' also appears in the dynamic content.

    1.png

  • ThimiosSp Profile Picture
    113 on at

    I thought that maybe a full view of my flow will help to better understand to setup.

    1.png

  • pennieln Profile Picture
    2 on at

    I find that converting the form's submission time from UTC to your needed time zone with the General time/date pattern helps with this error. 

     

    pennieln_0-1699376842223.png

     

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 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard