again-problem-with-syncing-google-event-to-ea

Supportagain-problem-with-syncing-google-event-to-ea
Theo Jager Staff asked 6 years ago
I have again a problem with getting Google calendar events in EA. Syncing from EA to Google is working fine. There are more questions about pulling Google calendar events into EA. I did read all comments and I think my configuration is fine: - syncing every 5 minutes - a calendar is linked to a worker\'s email address - in Google I have 5 sub calendars of 1 main calendar linked to EA in Advanced Calendars sync - the debug log is showing normal activity, no errorsPlease can you examine these log entries and advise about a solution? Thanks! [2018-11-13 17:58:54.410124] [info] Sync started [2018-11-13 17:58:54.868446] [debug] Calendars for sync 48bfrfrdi9o5rq89a83khvepvo@group.calendar.google.com: array( 'location' => '1', 'service' => '*', 'worker' => '1', ) eok28q4fgn8e8ltrar68bbvba0@group.calendar.google.com: array( 'location' => '6', 'service' => '*', 'worker' => '2', ) [2018-11-13 17:58:54.868690] [info] Syncing events for Calendar: 48bfrfrdi9o5rq89a83khvepvo@group.calendar.google.com [2018-11-13 17:58:54.868748] [info] Sync event within next 0 [2018-11-13 17:58:55.125770] [info] Fetched from Google Calendar 4 events [2018-11-13 17:58:55.520284] [info] Synced events : 3 [2018-11-13 17:58:55.520365] [info] Syncing events for Calendar: eok28q4fgn8e8ltrar68bbvba0@group.calendar.google.com [2018-11-13 17:58:55.520430] [info] Sync event within next 0 [2018-11-13 17:58:55.687164] [info] Fetched from Google Calendar 2 events [2018-11-13 17:58:55.689380] [info] Synced events : 0 [2018-11-13 17:58:55.689421] [info] Total sync events : 3 [2018-11-13 17:58:55.690368] [info] There are no new appointments needed to be send to Google Calendar [2018-11-13 17:58:55.690411] [info] Sync Done [2018-11-13 18:03:56.423072] [info] Sync started [2018-11-13 18:03:56.423228] [debug] Calendars for sync 48bfrfrdi9o5rq89a83khvepvo@group.calendar.google.com: array( 'location' => '1', 'service' => '*', 'worker' => '1', ) eok28q4fgn8e8ltrar68bbvba0@group.calendar.google.com: array( 'location' => '6', 'service' => '*', 'worker' => '2', ) [2018-11-13 18:03:56.423433] [info] Syncing events for Calendar: 48bfrfrdi9o5rq89a83khvepvo@group.calendar.google.com [2018-11-13 18:03:56.423475] [info] Sync event within next 0 [2018-11-13 18:03:56.695492] [info] Fetched from Google Calendar 4 events [2018-11-13 18:03:56.846949] [info] Synced events : 3 [2018-11-13 18:03:56.847007] [info] Syncing events for Calendar: eok28q4fgn8e8ltrar68bbvba0@group.calendar.google.com [2018-11-13 18:03:56.847063] [info] Sync event within next 0 [2018-11-13 18:03:56.944741] [info] Fetched from Google Calendar 3 events [2018-11-13 18:03:56.947057] [info] Synced events : 0 [2018-11-13 18:03:56.947098] [info] Total sync events : 3 [2018-11-13 18:03:56.948256] [info] There are no new appointments needed to be send to Google Calendar [2018-11-13 18:03:56.948299] [info] Sync Done
3 Answers
Nikola Loncar Staff answered 6 years ago
Hi, looks like everything is fine. There are two Google Calendars. One have 4 Events another 3. All 7 are already in sync with EA. Do you have selected value for Default Service inside settings on that page? Best regards, Nikola
Theo Jager Staff replied 6 years ago

Thanks for your comment! The workers don’t have access to the admin page, so I can’t use a Default Service unless all entries are moderated manually by the Admin (which I won’t like to do).
And since worker ID and Location ID are linked during syncing, I would expect a Default Location doesn’t add any value.

So, when in your opinion everything is fine and syncing is done, why don’t the appointments show up in the Reservations?

Nikola Loncar Staff replied 6 years ago

You must have default service or mapped service (not any). Reason for that is when you pull events from Google Calendar, EA don’t know how to process that event and where to put it.

Best regards,
Nikola

Theo Jager Staff answered 6 years ago
Thanks, Nikola! Indeed, a default service solved the problem. I didn\'t use it previously because a default duration didn\'t make sense, but it appeared that a service doesn\'t need a duration. Also, I created additional Google calendars for every room that should be reserved. The result is now perfect for syncing from Google calendar to EA. But when I delete such an appointment in EA, the original Google event isn\'t deleted. How can I solve that problem?
Nikola Loncar Staff replied 6 years ago

Hi, instead of deleting appointment just change status to canceled and it will be removed from Google Calendar 🙂

Best regards,
Nikola

Theo Jager Staff replied 6 years ago

Thanks again! One should probably have an IQ > 112 to understand the logic 😉
– set EA status of event to canceled > Google event will be deleted
– set EA status of event to deleted > nothing happens with Google event

What is the reason that deleted EA events aren’t synced in Google calendar by also deleting the Google event and/or shouldn’t that be considered as a bug?

Nikola Loncar Staff answered 6 years ago
Hi Theo, logic behind that is to have trace of event. If you delete it from EA and from Google Calendar where you will have info what happen. :) For example if you delete event from Google Calendar it will cancel that same event in EA. That is default behavior. Best regards, Nikola