-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'dateTime' of undefined (line 493, file "Helpers") #135
Comments
I don't get an error with 5.3, try updating to the latest version. |
How do I check which version I am running Jonas? I copied the scripts from readme section mentioned at this URL https://github.com/derekantrican/GAS-ICS-Sync. |
Open the copy of your script, at the bottom of Helpers.gs you can find a thisVersion variable. Did this error occur at the first run it did it start to appear after the script ran several times? |
Check near the bottom of Helpers.gs. You should see a |
Here is my suspect: @jonas0b1011001 @derekantrican This error might be occurring when a recurring event chain is broken. But in the week of 8/6/2020 I moved my Monday bug grooming to Tuesday. Just since event was in the series was moved. And the script might be complaining about that broken chain as per the date in the log. Don't know if that helps much. |
How does that week look in your google calendar? Edit: |
Thank you @jonas0b1011001 I have done a couple things:
That tiny problem is related to breaking a recurring series but it not failing the sync any more so that is good news. I'll log it as an enhancement request but nothing major. |
I am still seeing this issue. I've replaced the ical.js.gs with the one in your dev branch and it's still happening. Any suggestions?
|
@BoredMind Are you trying to sync an Outlook calendar? |
I'm having the same issue. Syncing from a outlook 365 account . |
Originally, replacing ical.js resolved my problem, but I just started seeing this error again. I will try to get more details to help debug |
Can one of you share the ics that is producing the error? |
I could be wrong, but it appears to be having an error when interrogating the Google Calendar event, not the ICS event. The error occurs on line 493, when it's iterating over the Google calendar events that were brought back to match the ICS event. Below is the
|
Could it be that I have corrupted events in my Google calendar from before I updated ical.js? I can clear my calendar of all synced events and start over..... |
That should not be necessary. |
Well, before I heard back, I deleted the recurring event from my O365 calendar, synced, and re-added it and resynced. No errors now. If it crops up again, I'll come back and share more details |
I am syncing from an Outlook calendar. I've exported my ical and scrambled all but the Event IDs: |
I can't find an obvious reason why it's not working with the fix from above. Can you sync the ics to a fresh google calendar using this version of the script and share the log file (You will find it here by selecting the corresponding entry). |
That seemed to fix it. Ran twice without issue. Thank you very much. |
Can you please check the log of the first run for errors (especially towards the end after "Processing X Recurrence Instances!"), just to be sure it is now working as intended. |
I do know I have a bunch of recurring events, but those appear to be sync'd. |
The recurring event series is synced separately, at this point the script is processing exceptions to a given series (i.e. an event is taking place every monday but on a specific date it is moved to tuesday), the file you shared earlier had quite a lot of those. |
Yes, that happens frequently in my calendar. So far the dev version appears to be working, I haven't noticed any issues but I'll keep an eye on it unless you need any more data. |
Just a confirmation of the solution... was having the same problem: an instance of an O365 recurring meeting had been rescheduled, which raised the error in Helpers.gs and the script refused to update that instance of meeting to its new time in the Google Calendar. Switched to the dev version of the script project and pointed it at the same Google Calendar (i.e. didn't create a new Google Calendar). No errors, and the script updated the rescheduled meeting time in the Google Calendar. Happy days. |
Yet another confirmation here. Had the same issue on Helpers.gs:493 on version 5.3 and updated the code to version linked on this comment and it is now working fine. I didn't re-create or changed anything on my gcal or O365. Why not update this version on the repo? |
I can confirm that copying the content of ical.js.gs from dev branch solved this issue for me as well. |
Outlook to Google calendar using ics link is showing attached error. However, it seems to be working as far as syncing most of the events in the calendar. I don't know if it is just warning or a genuine error that doesn't sync all the events in my calendar. I am using 5.2 script.
Is it possible that this is caused by a recurring calendar event on Outlook. And one for the event dates in the series has a different time?
Not a duplicate of #133 #115
["https://outlook.office365.com/owa/calendar/6cc9c9ba09864c0b84ff0552e83c8b1a@futurevaultinc.com/ccc41ae7ff424d6796284efdc72250bb12804937182588779247/calendar.ics", "FutureVault Calendar"]
You can see this issue for an example of good information when submitting a bug
The text was updated successfully, but these errors were encountered: