Community mailing list archives

Re: Error syncing to Google Calendar

Abhishek Mehta
- 07/21/2015 00:04:36
Hi mark,

the error says it all.

attendee_id =, uid, [('email', '=', google_attendee['email'])], 
in  above line there dictionary coming named as google_attendee where system can not find ['email'] key.

Please try to print that dictionary before your search and you will know the issue.

Abhishek Mehta
ERP Consultant,

Serpent Consulting Services Pvt. Ltd.
"Where Quality Time and Accuracy are valued the Most."
Web :
Mobile : 91 - 9428277041
Skype: a.mehta.serpentcs

On Mon, Jul 20, 2015 at 10:17 PM, Mark Lewis <> wrote:

Any idea what I can do, sync to Google Calendar fails although I created id and client secret as instructed.
Some calendar elements are synced and then I get this error message

What does it mean? Thanks
Regards Mark

Traceback (most recent call last):
  File "/home/odoo/src/odoo/8.0/openerp/", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/8.0/openerp/", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/8.0/openerp/", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/service/", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/", line 803, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/", line 403, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/controllers/", line 43, in sync_data
    return gc_obj.synchronize_events(, request.uid, [], context=kw.get('local_context'))
  File "/home/odoo/src/odoo/8.0/openerp/", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/", line 599, in synchronize_events
    res = self.update_events(cr, user_to_sync, lastSync, context)
  File "/home/odoo/src/odoo/8.0/openerp/", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/", line 826, in update_events
    res = self.update_from_google(cr, uid, False, event.GG.event, "create", context=context_tmp)
  File "/home/odoo/src/odoo/8.0/openerp/", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/", line 435, in update_from_google
    attendee_id =, uid, [('email', '=', google_attendee['email'])], context=context)
KeyError: 'email'

Mark Lewis
02 97 24 86 18
06 73 27 65 95

Post to: