Google Contact Sync error

Uploading item(s) to folder ‘[email protected]/Contacts/’ failed due to the following error: Execution of request failed: https://www.google.com/m8/feeds/contacts/default/full (Character reference "&#)

Looks to me like I might have a contact with a dodgy non-ASCII character where you’re not expecting it… but the error doesn’t tell me WHICH contact failed. 

  1. You can’t copy and paste error messages from the Operations error log. This is really annoying.
  2. The error message doesn’t tell me which contact failed. If you normally sync all contacts in a single POST operation, perhaps there could be a fallback mode where you send one at a time to get a useful error message?

Click on the lines in the log you want to copy from the Operations log, then right-click and choose copy. It is useful if you only want certain non-consecutive lines, as you can use Ctrl+click to select them.

Oh, I see. Well, this is every so slightly more informative but not much:

15:52:34 [email protected] [Google Calendar]  Synchronizing folder ‘[email protected]/Ben Curthoys (Personal)/’
15:52:40   MailClient.Storage.Application.OperationException: Uploading item(s) to folder ‘[email protected]/Contacts/’ failed due to the following error: Execution of request failed: https://www.google.com/m8/feeds/contacts/default/full (Character reference "&#)
15:52:40    at MailClient.Protocols.Gdata.GenericGdataCommand.Execute(WorkerStatus status)
15:52:40    at MailClient.Commands.Command.Process(WorkerStatus status)

I just tried to delete all past events from my Calendar and then got

eM Client (7.1.30794.0)
Windows: Microsoft Windows NT 10.0.16299.0, Framework: 4.0.30319.42000
The following error has occurred:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)    at MailClient.Storage.Application.ItemCollection2.createDiffList(IList1 items, IEnumerable1 remove)
   at MailClient.Storage.Application.ItemCollection2.RepositoryItemsMoved(Object sender, List1 filteredItems)
   at MailClient.Storage.Application.ItemCollection2.repository_ModifiedItems(Object sender, ItemPropertyChangedEventArgs1 e)
   at MailClient.Storage.Application.Schedule.ScheduleItemCollection1.repository_ModifiedItems(Object sender, ItemPropertyChangedEventArgs1 e)
   at System.EventHandler1.Invoke(Object sender, TEventArgs e)    at MailClient.Storage.Data.DbRepository1.OnModifiedItems(Object sender, ItemPropertyChangedEventArgs1 args)    at MailClient.Storage.Data.DbRepository1.Modify[ST](Object senderContext, IEnumerable1 items, IEnumerable1 propertyNames)
   at MailClient.Storage.Attachment.Data.ItemWithAttachmentRepositoryAdapter1.Modify[ST](Object senderContext, IEnumerable1 items, IEnumerable1 propertyNames)    at MailClient.RepositoryExtensions.Modify[T,ST](IRepository1 repository, IEnumerable1 items, IEnumerable1 propertyNames)
   at MailClient.Protocols.Common.ItemSynchronizer2.MailClient.Storage.Synchronization.IItemSynchronizer<tstorageitem>.Remove(Folder folder, IEnumerable1 items, Action1 completed)<br> at MailClient.Storage.Application.ItemCollection2.<>c DisplayClass31_0.b 0(Folder folder1, ICollection1 items, IItemSynchronizer1 synchronizer, IEnumerable1 storageItems)<br> at MailClient.Storage.Application.ItemCollection2.ExecutePerFolder(IEnumerable1 items, PerFolderAction action)<br> at MailClient.Storage.Application.ItemCollection2.RemoveRange(IEnumerable1 itemsToRemove, CancellationToken cancellationToken)<br> at MailClient.Storage.Application.Schedule.ScheduleItemCollection1.RemoveRange(IEnumerable1 items, CancellationToken cancellationToken, Boolean performScheduling, Boolean addExceptions)<br> at MailClient.Storage.Application.Schedule.ScheduleItemCollection1.MoveRange(IEnumerable1 items, Folder destinationFolder, CancellationToken cancellationToken)<br> at MailClient.UI.Commands.MoveToTrashCommand2.<>c DisplayClass7_0.b 1(IGrouping2 g)<br> at System.Collections.Generic.List1.ForEach(Action1 action)<br> at MailClient.UI.Commands.MoveToTrashCommand2.ExecuteInternal(CancellationToken cancellationToken)
at MailClient.UI.LongOperationService.<>c DisplayClass8_0.b 0(Object )
— End of inner exception stack trace —
at MailClient.UI.LongOperationService.InitOperation(String name, Action1 operation, Boolean cancellable)<br> at MailClient.UI.LongOperationService.InitOperation(String name, Action1 operation)
at MailClient.UI.Commands.CommandWithUndoBase.Execute()
at MailClient.UI.UIUtils.DeleteItemsWithUndo(IEnumerable toremove, Boolean permanently)
at MailClient.UI.Controls.controlEvents.Delete(Boolean permanently, Boolean fromContextMenu)
at MailClient.UI.Controls.controlEvents.menuItem_Context_Delete_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at MailClient.Common.UI.Controls.ToolStripMenuItemEx.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at MailClient.Program.<>c.b__90_1()
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at MailClient.Common.UI.Forms.BaseForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at Xilium.CefGlue.Interop.libcef.run_message_loop()
at MailClient.Program.Main(String[] args)


" rel=“nofollow” target="_blank">http://emclient.com/ns/report">;

eM Client
7.1.30794.0

false

Microsoft Windows NT 10.0.16299.0
4.0.30319.42000


System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
mscorlib




mscorlib.dll
100667963
mscorlib
System.RuntimeMethodHandle
InvokeMethod


mscorlib
System.Object
target


mscorlib
System.Object[]
arguments


mscorlib
System.Signature
sig


mscorlib
System.Boolean
constructor



ffffffff
0




mscorlib.dll
100681199
mscorlib
System.Reflection.RuntimeMethodInfo
UnsafeInvokeInternal


mscorlib
System.Object
obj


mscorlib
System.Object[]
parameters


mscorlib
System.Object[]
arguments



7
4f




mscorlib.dll
100665026
mscorlib
System.Delegate
DynamicInvokeImpl


mscorlib
System.Object[]
args



24
75




System.Windows.Forms.dll
100666632
System.Windows.Forms
System.Windows.Forms.Control
InvokeMarshaledCallbackDo


System.Windows.Forms
System.Windows.Forms.Control+ThreadMethodEntry
tme



cf
ae




System.Windows.Forms.dll
100666631
System.Windows.Forms
System.Windows.Forms.Control
InvokeMarshaledCallbackHelper


mscorlib
System.Object
obj



20
62




mscorlib.dll
100678315
mscorlib
System.Threading.ExecutionContext
RunInternal


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state


mscorlib
System.Boolean
preserveSyncCtx



79
e4




mscorlib.dll
100678314
mscorlib
System.Threading.ExecutionContext
Run


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state


mscorlib
System.Boolean
preserveSyncCtx



0
15




mscorlib.dll
100678313
mscorlib
System.Threading.ExecutionContext
Run


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state



2b
40




System.Windows.Forms.dll
100666630
System.Windows.Forms
System.Windows.Forms.Control
InvokeMarshaledCallback


System.Windows.Forms
System.Windows.Forms.Control+ThreadMethodEntry
tme



37
94




System.Windows.Forms.dll
100666633
System.Windows.Forms
System.Windows.Forms.Control
InvokeMarshaledCallbacks


58
132




System.Windows.Forms.dll
100666934
System.Windows.Forms
System.Windows.Forms.Control
WndProc


System.Windows.Forms
System.Windows.Forms.Message&
m



6b5
147




System.Windows.Forms.dll
100676350
System.Windows.Forms
System.Windows.Forms.ScrollableControl
WndProc


System.Windows.Forms
System.Windows.Forms.Message&
m



34
2f




System.Windows.Forms.dll
100672241
System.Windows.Forms
System.Windows.Forms.Form
WndProc


System.Windows.Forms
System.Windows.Forms.Message&
m



2d0
74




MailClient.Common.UI.dll
100663959
MailClient.Common.UI
MailClient.Common.UI.Forms.BaseForm
WndProc


System.Windows.Forms
System.Windows.Forms.Message&
m



36
45




System.Windows.Forms.dll
100684973
System.Windows.Forms
System.Windows.Forms.Control+ControlNativeWindow
OnMessage


System.Windows.Forms
System.Windows.Forms.Message&
m



0
12




System.Windows.Forms.dll
100684976
System.Windows.Forms
System.Windows.Forms.Control+ControlNativeWindow
WndProc


System.Windows.Forms
System.Windows.Forms.Message&
m



8e
34




System.Windows.Forms.dll
100674701
System.Windows.Forms
System.Windows.Forms.NativeWindow
DebuggableCallback


mscorlib
System.IntPtr
hWnd


mscorlib
System.Int32
msg


mscorlib
System.IntPtr
wparam


mscorlib
System.IntPtr
lparam



25
5d




Xilium.CefGlue.dll
100666895
Xilium.CefGlue
Xilium.CefGlue.Interop.libcef
run_message_loop


ffffffff
0




MailClient.exe
100665358
MailClient
MailClient.Program
Main


mscorlib
System.String[]
args



1746
3d90





System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
MailClient




MailClient.exe
100668540
MailClient
MailClient.UI.LongOperationService
InitOperation


mscorlib
System.String
name


mscorlib
System.Action1[[System.Threading.CancellationToken, MailClient.Threading, Version=7.1.30794.0, Culture=neutral, PublicKeyToken=null]]</type><br> <name>operation</name><br> </parameter><br> <parameter><br> <assembly>mscorlib</assembly><br> <type>System.Boolean</type><br> <name>cancellable</name><br> </parameter><br> </parameters><br> </method><br> <offset>193</offset><br> <nativeoffset>80d0ff</nativeoffset><br> <br> <frame> <br> <method><br> <modulename>MailClient.exe</modulename><br> <metadatatoken>100668539</metadatatoken><br> <assembly>MailClient</assembly><br> <type>MailClient.UI.LongOperationService</type><br> <name>InitOperation</name><br> <parameters><br> <parameter><br> <assembly>mscorlib</assembly><br> <type>System.String</type><br> <name>name</name><br> </parameter><br> <parameter><br> <assembly>mscorlib</assembly><br> <type>System.Action1[[System.Threading.CancellationToken, MailClient.Threading, Version=7.1.30794.0, Culture=neutral, PublicKeyToken=null]]
operation



0
f




MailClient.exe
100670687
MailClient
MailClient.UI.Commands.CommandWithUndoBase
Execute


21
53




MailClient.exe
100668986
MailClient
MailClient.UI.UIUtils
DeleteItemsWithUndo


mscorlib
System.Collections.IEnumerable
toremove


mscorlib
System.Boolean
permanently



305
6f6




MailClient.exe
100677063
MailClient
MailClient.UI.Controls.controlEvents
Delete


mscorlib
System.Boolean
permanently


mscorlib
System.Boolean
fromContextMenu



a2
15a




MailClient.exe
100677086
MailClient
MailClient.UI.Controls.controlEvents
menuItem_Context_Delete_Click


mscorlib
System.Object
sender


mscorlib
System.EventArgs
e



0
13



&nb

What I would do is remove the account from eM Client, then add it again. If this does not solve the problem, remove the account again, then delete the events you wanted to through the web interface from Google Calendar. Add the account again in eM Client.

That seems to have done it. Thanks!