Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Syncing Office 365 Calendar to Google Calendar

Hi, I've been using this flow ("Sync changes including adding, updating and deleting from Office 365 Calendar to Google Calendar.") for many months but have in the past few months received notifications of failed flows, always failing at the very last step, "Create events in Google calendar". It doesn't give me any option to "fix" it - please help!


I got this message:

InvalidTemplate. Unable to process template language expressions in action 'Create_an_event' inputs at line '1' and column '2855': 'The template language function 'substring' parameter is out of range: 'start index' must be non-negative integer and should be less than the length of the string. Please see for usage details.'.

Flow Capture.PNG

Community Support Team
Community Support Team

Re: Syncing Office 365 Calendar to Google Calendar

Hi @blueskyescapes ,


Could you please share more details about the expression with substring?

Also could you please share a screenshot of the Create an event action in your flow?


Best regards,



Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,359)