Having a somewhat similar problem. Have tried repeatedly to run both the Google to Outlook 365 calendar sync templates, but neither one works. Screen grab of latest failure is below:
Error message from template. Was "signed in" at the time.
Previously, got a similar error message as earlier poster, but referred to "undefined substr".
Thanks,
Wes