Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow not working correctly String was not recognized as a valid DateTime.

(0) ShareShare
ReportReport
Posted on by 18

Hi, I am getting the below error message stopping my flow from running.

String was not recognized as a valid DateTime. And then my Client ID.

 

I am running an export from Excel to Outlook Calendar event.

 

Below is my excel headers

NiallOB01_0-1664879059712.png

 

And this is the config for the Outlook Event

NiallOB01_1-1664879148722.png

Help please??

  • emadrigal Profile Picture
    Microsoft Employee on at
    Re: Flow not working correctly String was not recognized as a valid DateTime.

    Hello @NiallOB01 

     

    Could you please send more pictures about your complete flow to see more details about it. To see what trigger you are using.

     

    Regards,

     

    Community Support Team - Edgar Madrigal

  • NiallOB01 Profile Picture
    18 on at
    Re: Flow not working correctly String was not recognized as a valid DateTime.

    Okay so I got that part working, and it succeeds, however it doesnt actually post anything to my outlook? Any ideas with the same configuration 

  • Verified answer
    emadrigal Profile Picture
    Microsoft Employee on at
    Re: Flow not working correctly String was not recognized as a valid DateTime.

    Hello @NiallOB01 

     

    • I think you're getting this error because your Date field in excel is not in the ISO format. You can try changing this to the correct format.

    Instead of using 'dd-MM-yyyy' you should use 'yyyy-MM-dd'

     

    emadrigal_0-1664905348194.png

     

    To be able to change the format in excel you can review Creating a custom date format in Excel in this link: How to change Excel date format and create custom formatting (ablebits.com)

     

     

    • Other option is using the FormatDateTime() in Power Automate to format your date in different date formats like dd/MM/yyyy, MM/dd/yyyy. For that you should use this function:

     

     

    formatDateTime(variables('VariableName'),'dd-MM-yyyy')

     

     

    Links to learn more about FormatDateTIme function:

     Power Automate formatdatetime [with real examples] - SPGuides

    Power Automate Fundamentals # 5: Usage of formatDa... - Power Platform Community (microsoft.com)

     

     

    • Other option is doing something like this:

     

    emadrigal_1-1664906142631.png

     

     

    Let me know if it this helps you!

     

    Regards,

     

    Community Support Team - Edgar Madrigal

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you like my response, please give it a Thumbs Up.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow