Problems with setting up Connect add-on and Google Calendar

SupportProblems with setting up Connect add-on and Google Calendar
Sergey Karpukhin asked 6 years ago
Hi! we have a problem with syncing slots booked through Peerspace and booked through easy appointments. after i add calendar every time it syncs it creates duplicate appointments in the back end and in the calendar, ending up with hundreds of same slot events. how can we fix this? thanks
4 Answers
Nikola Loncar Staff answered 6 years ago
Hi Sergey, have you connected your site with system scheduler? Is same time zone on both ends? Best regards, Nikola
sergey_karpukhin Staff answered 6 years ago
Yes, it\'s Pacific time everywhere and i turned on the crontab The events from Peerspace are all named the same \"Peerspace Booking\" and they only have different start/end date/time and a link in the description to the booking itself. When EA syncs with that calendar it creates in its back-end events corresponding to Peerspace bookings and then adds them back into the calendar (?) which is the problem because later it picks up Peerspace bookings anew and creates more and more.
sergey_karpukhin Staff replied 6 years ago

Also, the description field is not saved but it’s a minor problem

Nikola Loncar Staff replied 6 years ago

Can you please tell me are you testing it by yourself? Because if person that is creating google event is same as customer then there will be two Appointments in same Google Calendar. So that new event will be also synced back to EA etc. Try using different email address for customer during testing.

Best regards,
Nikola

sergey_karpukhin Staff replied 6 years ago

I’m using your plugin on my website and i use peerspace.com to rent out the space as well. they export to google calendar just the time and link. I don’t really need EA to import customers or anything, all i need from this calendar sync is blocking unavailable time in the calendar on EA

Nikola Loncar Staff replied 6 years ago

Can you please take a screen shot of such event in Google Calendar? Are you able to alter such event or it is on read only calendar?

Best regards,
Nikola

sergey_karpukhin Staff replied 6 years ago

i can alter the event, the calendar is not read-only. they use Cronofy API for this. currently i have them on a separate calendar because of the duplicates issue but i really hope it can be resolved because there shouldn’t be duplicates possible at one date/time/duration/service/location/worker if there’s no “simultaneous bookings allowed” checkbox. this is the peerspace booking https://imgur.com/a/XESvGW0 here’s multiplied booking after sync with the
EA https://imgur.com/Jdt7qjq

sergey_karpukhin Staff replied 6 years ago

thank you for quick responses!

Nikola Loncar Staff answered 6 years ago
Hi Sergey, can you please check database table called ea_connect_links on your site. There should be same IDs for those duplicated appointments in EA and paste it here. Just the ids. Best regards, Nikola
sergey_karpukhin Staff replied 6 years ago

here’s the screen grab. there were 5 original bookings, so every 5 minutes a cron added 5 more duplicates
the id’s all look different but actually it was the same 5 events…

sergey_karpukhin Staff replied 6 years ago

https://imgur.com/a/oXDfJTW

Nikola Loncar Staff replied 6 years ago

Can you paste one id from there?

Best regards,
Nikola

Nikola Loncar Staff replied 6 years ago

You can alter part of ID, I am interested only about size of that string.

Best regards,
Nikola

sergey_karpukhin Staff replied 6 years ago

id int(11)
22126
app_id int(11)
21609
google_event_id varchar(128)
pnad9meu80tkgrbsgs8erptnno
created_at datetime
2018-09-26 20:10:10

Nikola Loncar Staff replied 6 years ago

Thanks for the data that should not be the problem. It’s way less then 128 chars

Best regards,
Nikola

sergey_karpukhin Staff answered 6 years ago
Hi Nikola, so the problem still remains. For a plugin that I paid for I expect it to be working. Will there be any progress on this?
Nikola Loncar Staff replied 6 years ago

Hi Sergey, I was not able to recreate same thing locally. Can you please create a temp account for Admin part of your site? I will try to create couple of appointments and watch if duplicating occur again.

Best regards,
Nikola