web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 5sXBhdMeET9L3JPKnKnCzR
Power Automate - Building Flows
Unanswered

String/date-time issue

Like (0) ShareShare
ReportReport
Posted on 19 Nov 2020 12:59:41 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?

 

I have the same question (0)
  • pennieln Profile Picture
    2 on 07 Nov 2023 at 17:08:44
    Re: String/date-time issue

    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

     

  • ThimiosSp Profile Picture
    113 on 19 Nov 2020 at 16:09:44
    Re: String/date-time issue

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

    1.png

  • ThimiosSp Profile Picture
    113 on 19 Nov 2020 at 15:25:51
    Re: String/date-time issue

    DueDate is the column from Excel in need to use. 

    2.png 

     

    'DueDate_formatted' also appears in the dynamic content.

    1.png

  • Paulie78 Profile Picture
    8,416 Moderator on 19 Nov 2020 at 15:04:45
    Re: String/date-time issue

    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 19 Nov 2020 at 14:50:49
    Re: String/date-time issue

    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,416 Moderator on 19 Nov 2020 at 13:04:31
    Re: String/date-time issue

    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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard