Skip to main content
Community site session details

Community site session details

Session Id : BHUMXri364GXCRR8JHe+va
Power Automate - Building Flows
Answered

Google Agenda to Outlook sync error : "The string was not recognized as a valid DateTime"

Like (0) ShareShare
ReportReport
Posted on 23 Aug 2021 10:47:27 by 6

Hello !

I'm trying to sync new event on a Google Calendar to an Outlook calendar, but when I run a test it failed with this error details :
"The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
clientRequestId: fe0c7056-ae08-47aa-911b-f13a45d0205f"

In StartTime field I have this : "convertToUtc(triggerOutputs()?['body/start'], 'GMT Standard Time')"
And in EndTime field I have this : "convertToUtc(triggerOutputs()?['body/start'], 'GMT Standard Time')"
According to this post, because I had an error "OpenApiOperationParameterValidationFailed" with "triggerOutputs()?['body/start']" : https://powerusers.microsoft.com/t5/Building-Flows/Template-by-Microsoft-Flow-Community-does-not-save/m-p/483192#M59201

Any ideas to fix this ?

Capture d’écran 2021-08-23 à 12.24.53.pngCapture d’écran 2021-08-23 à 12.26.47.png

  • eric-cheng Profile Picture
    5,171 on 23 Aug 2021 at 12:56:18
    Re: Google Agenda to Outlook sync error : "The string was not recognized as a valid DateTime"

    Hi @hbirdlabs ,

     

    You can also give the below connector a go.  Saves mucking around with expressions.

     

    Screenshot_20210823-225430_Chrome.jpg

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • hbirdlabs Profile Picture
    6 on 23 Aug 2021 at 12:31:19
    Re: Google Agenda to Outlook sync error : "The string was not recognized as a valid DateTime"

    @eric-cheng Thanks for your help, it works... But now there's another problem 😅

    The error message is : "Unable to process template language expressions in action 'Create_event_(V4)' inputs at line '1' and column '25738': 'The template language function 'convertToUtc' expects its second parameter to be a time zone matching the time zone indicated by the timestamp. The provided value '(UTC+00:00) Dublin, Edinburgh, Lisbon, London' is not valid or does not match the timestamp '2021-08-28T01:00:00.0000000+00:00'. Please see https://aka.ms/logicexpressions#ConvertToUtc for usage details.'."

    Maybe you can help me to handle this one too ?

  • Verified answer
    eric-cheng Profile Picture
    5,171 on 23 Aug 2021 at 10:54:02
    Re: Google Agenda to Outlook sync error : "The string was not recognized as a valid DateTime"

    Hi @hbirdlabs ,

     

    You need to add the formula as an expression.

     

    Add a @ and copy and paste into the field again.

     

    E.g.

     

    @convertToUtc(triggerOutputs()?['body/start'], 'GMT Standard Time')

     

    Do the same for end time

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Loading complete