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 fails when updati...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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,145 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
    Microsoft Employee 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,145 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee on at

    Thanks Barry. Worked first time

  • Community Power Platform Member Profile Picture
    Microsoft Employee 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,145 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

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
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard