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 / Flow fails when updati...
Power Automate
Unanswered

Flow fails when updating file properties. Error: String was not recognized as a valid DateTime.

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I've built a Flow to my PowerApp which updates a document library.

I have added a DOB field in the powerApp. I have then created a Variable in my Flow (see below)

 

DOB.PNG

 

The variable runs successfully however when i add the variable in the update file properties i receive an error (see below)

 

Flow Error.PNG

 

See below for update file properties details

Capture2.PNG

 

Can anyone advise on what I may be doing wrong here or why the Flow is failing please.

Thanks in advance.

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    @Anonymous 

     

    Check to see the value in the variable when the flow runs.

    It looks like the format is not of type datetime.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hey,

    In the value it's showing a date just the same as I input into my PowerApp

    Capture.PNG

     

    Could there possibly be an issue with my Column in the Library

  • RezaDorrani Profile Picture
    12,143 on at

    @Anonymous 

     

    You date 13/12/1995

     

    13 cannot be a number for month

    thats why it is failing

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • Community Power Platform Member Profile Picture
    on at

    After my last reply I went into site settings and changed the regional settings and set time zone to Dublin, Edinburgh... and Region Locale to English (United Kingdom) ran the App again and it still fails. I would have thought this would default the date to dd/mm/yyyy.

     

    P.s The flow runs if the number is under 13 making me think it's sticking to the American date format somewhere, even though it displays as uk date when i select this from the Powerapp

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    You could use the following expression to change the date format to the expected one.

    concat(split(variables('varDOB'),'/')[1],'/',split(variables('varDOB'),'/')[0],'/',split(variables('varDOB'),'/')[2])

    Then you could fill the output of Compose in the date field.

    132.PNG

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Thanks Barry. Worked first time

  • Community Power Platform Member Profile Picture
    on at

    Reza,

    I can't resolve this date issue even though all looks fine in the SP site. Your solution does work bit unfortunately due to my site settings it doesnt.

    Thank you very much for helping out. 👍

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @Anonymous 

     

    Although the solution has worked, it is not ideal.

    You will need to analyze why the dates are not coming through in your regional locale.

    You would not want to plug in an expression every time you build a flow dealing with dates.


    Regards,

    Reza

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard