web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Appointment sync error: An unknown error occurred while synchronizing data to Outlook; resource not found

(0) ShareShare
ReportReport
Posted on by 1,025

When manually syncing Appointments down from the CRM server to Outlook, it shows sync error "An unknown error has occurred...".  In troubleshooting, this appears to be related to Appointment parties (i.e. the Required, Optional, and Organizer field parties).

Trace file details:

>crm id :'{17DDxxxx-DD92-xxxx-90DE-001EC932xxxx}', Error:An unknown error occurred while synchronizing data to Outlook.
[2012-06-13 08:25:09.921] Process:OUTLOOK |Organization:e20fxxxx-cc79-xxx1-xxxx-001ec93xxxx4 |Thread:   25 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | SchedulableActivityForOutlook.GenerateCrmPartyInfo
 at SchedulableActivityForOutlook.GenerateCrmPartyInfo
(String entityId, Object messageItem, IDynamicEntityForOutlook dynamicEntity)
 at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter)
>Exception occurred during outlook interop: System.Runtime.InteropServices.COMException (0x8004010F): The item could not be found.
   at Microsoft.Office.Interop.Outlook._NameSpace.GetRecipientFromID(String EntryID)
   at Microsoft.Crm.Outlook.OutlookItemWrapper.DecodeRecipientEmailAddress(PropValue mapiEntryId, PropValue altId, PropValue emailValue, PropValue emailType, String& displayName)
   at Microsoft.Crm.Outlook.OutlookItemWrapper.GetOutlookRecipients(Object itemWrapper, Object messageItem)
   at Microsoft.Crm.Outlook.OutlookItemWrapper.GenerateCrmPartyInfo(Guid entityId, IClientOrganizationContext context, Object messageItem, IDynamicEntityForOutlook dynamicEntity)
   at Microsoft.Crm.Application.SMWrappers.SchedulableActivityForOutlook.GenerateCrmPartyInfo(String entityId, Object messageItem, IDynamicEntityForOutlook dynamicEntity)
[2012-06-13 08:25:09.921] Process:OUTLOOK |Organization:e20fxxxx-cc79-xxx1-xxxx-001ec93xxxx4 |Thread:   25 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Warning |ReqId:  | ResourceForOutlook.Microsoft.Crm.Application.SMWrappers.IResourceForOutlook.GetString
 at ResourceForOutlook.Microsoft.Crm.Application.SMWrappers.IResourceForOutlook.GetString(Int32 id)
 at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter)
> Exception: System.Runtime.InteropServices.COMException (0x80040203): Resource not found(-2147221233).
   at Microsoft.Crm.Application.SMWrappers.ResourceForOutlook.Microsoft.Crm.Application.SMWrappers.IResourceForOutlook.GetString(Int32 id)
[2012-06-13 08:25:09.921] Process:OUTLOOK |Organization:e20fxxxx-cc79-xxx1-xxxx-001ec93xxxx4 |Thread:   26(MSCRM:-DownloadStatus.RunUserInterfaceThread) |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | RuntimeMethodHandle._InvokeMethodFast
 at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
 at RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
 at Delegate.DynamicInvokeImpl(Object[] args)
 at Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
 at Control.InvokeMarshaledCallbackHelper(Object obj)
 at ExecutionContext.runTryCode(Object userData)
 at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
 at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
 at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
 at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
 at Control.InvokeMarshaledCallbacks()
 at Control.WndProc(Message& m)
 at ScrollableControl.WndProc(Message& m)
 at Form.WndProc(Message& m)
 at ControlNativeWindow.OnMessage(Message& m)
 at ControlNativeWindow.WndProc(Message& m)
 at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
 at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
 at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
 at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
 at Application.RunDialog(Form form)
 at Form.ShowDialog(IWin32Window owner)
 at Form.ShowDialog()
 at OutlookUIHelper.ShowDialog(Form form)
 at DownloadStatus.RunUserInterfaceThread()
 at ThreadHelper.ThreadStart_Context(Object state)
 at ExecutionContext.runTryCode(Object userData)
 at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
 at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
 at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
 at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at ThreadHelper.ThreadStart()

 

Any ideas?

*This post is locked for comments

I have the same question (0)
  • Brian Storie Profile Picture
    on at

    Hello Allan,

    This issue could be caused by a number of things.  If this is happening for every appointment you sync, then there maybe an issue with the Installation of Outlook, as the Office.Interop.Assemblies may be the culprit, a repair of the Office Installation would fix this situation.

    Additional if its only for certain appointments, then I would look at who the attendees are.  When we Sync down the appointment to Outlook we will try to resolve the Id's to names of those people during the creation of the Appointment.  If we can't resolve that Party's Id to a name, (For example if they are hidden from the Exchange Address List) then we can get an error such as this.

    I hope this helps answer your question.

    Best Regards,

    Brian Storie

    CRM Support Engineer

  • Allan20112 Profile Picture
    1,025 on at

    Hello Brian,

    Thank you for your reply. This is only happening to some appointments that I sync and it happens in multiple environments, so repairing Office likely wouldn't help.

    The Hidden From Address List column in Exchange Management Console is set to False.

    It looks like it can't find a Party ID. Any way that we can make it so it can find it?

    (FYI I have an open case with Microsoft support on this, and posted this to see if anyone in the CRM community has happened to run into this before. So far it appears related to the Required, Organizer, and other party fields on the appointment entity. Somehow when the appointments are created in Outlook and promoted to CRM, and then synced down to another PC, it seems to generate these unknown errors.  Cause #1 was the Organizer field being blank causing the unknown sync error. This field can be left blank during data migration to CRM or by the user blanking it out somehow. We're looking into Cause #2 at the moment which is related to the party fields.)

    Thanks!

    Allan

  • Community Member Profile Picture
    on at

    Did you have any luck resolving this issue? We have something similiar with the exact same error message, but we are also in the process of moving the Exchange mailboxes from 2007 server to 2010 and am wondering if that is causing part of our problems.

    Brad

  • Verified answer
    Allan20112 Profile Picture
    1,025 on at

    Hi Brad,

    Yes, we troubleshot with Microsoft support and it was an issue with the record parties. What was happening for us was that some CRM Appointments wouldn't sync down a copy of the record to Outlook at all. It gave sync errors where it said "An unknown error occurred while synchronizing data to Outlook."

    There were two causes that were both under the generic "unknown error":

    1. If an Appointment "Organizer" field is blank (e.g. from a data migration to CRM) and you're trying to sync it down to a newly configured test environment.
    2. Trying to sync with a test environment that's configured to a User that's in a different Active Directory domain and/or  different Exchange server than the other parties. This may be why we got the "resource not found" error -- it couldn't find the record parties.

    The bottom line is that the Appointment "Organizer" field should be filled (e.g. via workflow), and the configured CRM User and environment should be in the same AD domain and Exchange server as the other users.

    For your scenario:

    If you change Exchange servers, sometimes you can lose the SMTP email addresses in all of the emails sitting in their inbox. This will make it impossible to re-sync or again track the emails, and you'll probably get unknown sync errors for emails that came before the Exchange server move. There may be a way to preserve/restore the SMTP information. You should be able to successfully track emails that came in after changing the Exchange server.

    If this is happening for you with email records:

    Are the records (e.g. emails, appointments) you're trying to track from people outside of the company, or are they all users in the company? Do the parties shown in the record FROM, TO, CC lines have SMTP email addresses in the Outlook Properties? You might check the Developer tab for the field values.

    Here's a thread I answered where someone had a similar issue as you with emails: social.microsoft.com/.../abd7df8a-b78e-4f2c-a1e6-182d9fecffee

    Thanks,
    Allan

  • Allan20112 Profile Picture
    1,025 on at

    Brad, otherwise you might try doing a Repair on CRM in Control Panel to see if that helps.

  • Erez david Profile Picture
    100 on at

    Thank You Allan. I can confirm that i had the same isue and it resolved by filling the Appointment "Organizer" field.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans