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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / String/date-time error...
Power Automate
Unanswered

String/date-time error ( apps to automate)

(0) ShareShare
ReportReport
Posted on by 257

Hey guys.

 

So I have this Powerapps vacation app where the user chooses 4 periods of time to take vacation, then through a flow this data are inserted in a Sharepoint list and to a Sharepoint Calendar. And it´s in this last step where the error occurs.

1.PNG

Here is the work flow

(Lets focus only on the 1st period)

Here are the 2 variables (Start Date and End Date) (Portuguese speaker here :p)

2.PNG

The flow follows and these two dates are successfully inserted in the list.

3.PNG

Finally when I try to insert this event on the shared calendar...the flow fails

4.PNG

5.PNG

Traduction: The "inputs.parameters" of the "Create_item_2" workflow operation of type "OpenApiConnection" is not valid. Error details: The input parameter "item/EventDate" must be of type "String/date-time". The runtime value ""18/04/2022"" to be converted does not have the expected format "String/date-time".

 

Allready looked into several questions but none of them solved my problem.

Any help please?

 

Thanks in advance

Categories:
I have the same question (0)
  • JoaoSantos489 Profile Picture
    257 on at

    Here is the output in question.

    6.PNG

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @JoaoSantos489 

     

    It's because the action expects an iso8601 date format.  The language translation in Power Automate has let you down to be honest, although it's not easy to understand.  

     

    Your date needs to be in the format yyyy-MM-dd.  You can convert your datetime with parsedatetime.

     

    E.g. parsedatetime('07-03-2022','en-gb')

     

    Check out -> https://www.youtube.com/watch?v=ybPWtu1i1j0&t=37s

     

    Please consider accepting my answer as a solution if it helps to solve your problem.

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

     

  • JoaoSantos489 Profile Picture
    257 on at

    Thanks! That worked perfectly @DamoBird365 .

    And you just won a new subscriber. Congrats on the youtube channel! 

  • Barking_Mad1 Profile Picture
    on at

    Hi @DamoBird365 

     

    I watched your clip but unfortunately couldn't get mine to work. It's a flow to check if a 'return date' is exactly 90 days from today's date. If it is, it sends an email. It was working, then bizarrely (but not unusually!) it stopped working.

    Barking_Mad1_2-1646744078456.png

     

     

     

    My two expressions in the condition are:

     

    • addDays(utcNow(),90,'dd-MMM-yy')
    • formatDateTime(parsedatetime(outputs('Compose'),'en-gb'),'dd-MMM-yy')

     

    Before your suggestion above the 2nd one was just:

    • formatDateTime(outputs('Compose'),'dd-MMM-yy')

     

    Any help appreciated!

     

     

     

     

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Barking_Mad1 

     

    Try those two dates outside of a condition.  Create a compose for the first date and another for the 2nd, then create a compose with equals(compose1, compose2) and see if you get true.  Then when you do crack it, put it into a condition.  Excel has the ability to return datas as ISO8601 in advanced settings, check that out too.

     

    Damien

  • Schowd Profile Picture
    7 on at

    using parsedatetime('date','en-gb') worked for me, i was submitting data to Dataverse.
    Power automate seems submits the data in the us format when adding a row, however it has another "row" which is the Display.V1.FormattedValue which was in the UK format (i thought this was what it wanted, when looking at the table in dataverse).  An idea maybe to create a record manually in your DataSource. List rows from that table/datasource and view how power automate is displaying the format of the date for that field.

    Schowd_0-1666040975785.png

    Schowd_1-1666041119576.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard