Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to identify error from Microsoft Trace report?

Posted on by Microsoft Employee

Hello,

I have created a Managed Package. It is working fine when importing managed package in trial account of Office 365. But it is not working in my Microsoft Cloud CRM account.

I have tried by all the changes but didn't get rid of it. Finally I have contacted to Microsoft and they have provided me following logs.

Here is the log:

PreciseTimeStamp

Role

traceMessage

2017-04-06 20:50:11.355

AsynchronousProcessingService

Failed to add the item  to the sync item collection for the mailbox : {8CBF53D0-896B-E611-80F2-FC15B4288714}. Exception details : Unhandled Exception: Microsoft.Crm.CrmArgumentException: Invalid input.

   at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeItemFinder.AddItemToSyncItemChangeInfoCollection(Item item, String itemId, SyncItemChangeType itemChangeType, ItemObjectType itemObjectType, String crmId)

Inner Exception: System.ArgumentException: Invalid input.



.

2017-04-06 20:50:11.360

AsynchronousProcessingService

Failed to add the item  to the ItemFinder sync error collection for the mailbox : {8CBF53D0-896B-E611-80F2-FC15B4288714}. Exception details : Unhandled Exception: Microsoft.Crm.CrmArgumentException: Invalid input.

   at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeItemFinder.AddItemToItemFinderSyncErrors(String itemId, SyncItemChangeType itemChangeType, ItemObjectType itemObjectType, Exception ex)

Inner Exception: System.ArgumentException: Invalid input.



.

2017-04-06 20:52:26.662

WebApplicationServer

InitializeFrom cannot be invoked from source entity of type account with id 89abd2b1-248f-e611-80f3-fc15b4282658 to target entity type slakpiinstance because there is no entity map defined between these two entities.

2017-04-06 20:52:26.664

WebApplicationServer

Web Service Plug-in failed in SdkMessageProcessingStepId: 27cbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: none; Stage: 30; MessageName: InitializeFrom; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

   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.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

Inner Exception: Microsoft.Crm.CrmException: There is no entity map defined for the given entities

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, Boolean mapReadSecuredOnSourceAndTarget, ExecutionContext context)

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, ExecutionContext context)

.

2017-04-06 20:52:26.666

WebApplicationServer

MessageProcessor fail to process message 'InitializeFrom' for 'none'.

2017-04-06 20:52:26.668

WebApplicationServer

MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: There is no entity map defined for the given entities

Error Number: 0x80040E01

Error Message: There is no entity map defined for the given entities

Error Details: There is no entity map defined for the given entities

Source File: Not available

Line Number: Not available

Request URL:

Stack Trace Info: [CrmException: There is no entity map defined for the given entities]
   at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

   at Microsoft.Crm.Application.Platform.ServiceCommands.InitializeFromCommand.Execute()

2017-04-06 20:52:26.675

WebApplicationServer

InitializeFrom cannot be invoked from source entity of type account with id 89abd2b1-248f-e611-80f3-fc15b4282658 to target entity type slakpiinstance because there is no entity map defined between these two entities.

2017-04-06 20:52:26.677

WebApplicationServer

Web Service Plug-in failed in SdkMessageProcessingStepId: 27cbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: none; Stage: 30; MessageName: InitializeFrom; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

   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.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

Inner Exception: Microsoft.Crm.CrmException: There is no entity map defined for the given entities

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, Boolean mapReadSecuredOnSourceAndTarget, ExecutionContext context)

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, ExecutionContext context)

.

2017-04-06 20:52:26.678

WebApplicationServer

MessageProcessor fail to process message 'InitializeFrom' for 'none'.

2017-04-06 20:52:26.681

WebApplicationServer

MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: There is no entity map defined for the given entities

Error Number: 0x80040E01

Error Message: There is no entity map defined for the given entities

Error Details: There is no entity map defined for the given entities

Source File: Not available

Line Number: Not available

Request URL:

Stack Trace Info: [CrmException: There is no entity map defined for the given entities]
   at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

   at Microsoft.Crm.Application.Platform.ServiceCommands.InitializeFromCommand.Execute()

2017-04-06 20:52:26.699

WebApplicationServer

InitializeFrom cannot be invoked from source entity of type account with id 89abd2b1-248f-e611-80f3-fc15b4282658 to target entity type task because there is no entity map defined between these two entities.

2017-04-06 20:52:26.701

WebApplicationServer

Web Service Plug-in failed in SdkMessageProcessingStepId: 27cbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: none; Stage: 30; MessageName: InitializeFrom; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

   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.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

Inner Exception: Microsoft.Crm.CrmException: There is no entity map defined for the given entities

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, Boolean mapReadSecuredOnSourceAndTarget, ExecutionContext context)

   at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, ExecutionContext context)

.

2017-04-06 20:52:26.702

WebApplicationServer

MessageProcessor fail to process message 'InitializeFrom' for 'none'.

2017-04-06 20:52:26.705

WebApplicationServer

MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: There is no entity map defined for the given entities

Error Number: 0x80040E01

Error Message: There is no entity map defined for the given entities

Error Details: There is no entity map defined for the given entities

Source File: Not available

Line Number: Not available

Request URL:

Stack Trace Info: [CrmException: There is no entity map defined for the given entities]
   at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

   at Microsoft.Crm.Application.Platform.ServiceCommands.InitializeFromCommand.Execute()

*This post is locked for comments

  • prt33k Profile Picture
    prt33k 6,907 on at
    RE: How to identify error from Microsoft Trace report?

    Yes.. I was referring to OptionSet.

    Can you place a screenshot of your trace file opened in excel here.

    I am trying to figure out the component that is causing the failure.

    Thanks,

    PS

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to identify error from Microsoft Trace report?

    Hi,

    Are you talking about "Option Sets" in Components of Solution? If so, there is no Option Set. Let me know I misunderstood.

    Thanks.

  • prt33k Profile Picture
    prt33k 6,907 on at
    RE: How to identify error from Microsoft Trace report?

    So the version issue is ruled out.

    Going by the log you shared:

    ---------------------------------------

    Download Log of Managed Package 1:

    Form --> Processed

    Entity Ribbon --> Processed

    Publish StringMaps --> Unprocessed

    Root Components Insertion --> Unprocessed

    Dependencies Calculation --> Unprocessed

    ===============================

    That mean then Publishing StringMaps was not successful - assumping the order you quoted is as per the excel.

    Can you remove the optionset from the solution and then try import again?

    I am trying to isolate the issue to the component level.

    Thanks,

    PS

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to identify error from Microsoft Trace report?

    Hi,

    1- It asks for version when export. I have exported Managed Package from 8.2 and imported in latest 8.2(as I said I have upgraded to latest CRM)

    2- After failure, I download log(.xml) and open it in Excel. It doesn't display any exception. It simply provide status "Processed/Unprocessed".

    Thanks

  • prt33k Profile Picture
    prt33k 6,907 on at
    RE: How to identify error from Microsoft Trace report?

    Hi,

    When you export solution it does ask which version you are targeting to. Did you select 8.0 or 8.1? Version mismatch can cause error.

    Also, doesnt the log you download after the solution import fails has the exception detail on the step the job failed?

    You can try opening the log in excel and it should show the exact detail.

    Thanks,

    PS

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to identify error from Microsoft Trace report?

    Hi prt33k,

    Actully above Error Trace is of Full Package. I don't have Microsoft Error Trace of isolated testing as I have done it for trial. However, I have downloaded xml log of Package 1.

    ---------------------------------------

    Download Log of Managed Package 1:

    Form --> Processed

    Entity Ribbon --> Processed

    Publish StringMaps --> Unprocessed

    Root Components Insertion --> Unprocessed

    Dependencies Calculation --> Unprocessed

    ===============================

    All other components are processed. One more thing come in my mind. I don't know whether it effect or not. I have upgraded CRM to latest version before few days. As we know the Version 8.0 and 8.1 doesn't include Customer(Account/Contact) in Package, that can be create issues?

    Please suggest your thoughts

  • prt33k Profile Picture
    prt33k 6,907 on at
    RE: How to identify error from Microsoft Trace report?

    Hi,

    There are two error:

    1) 8:50 PM - Async Service - Relating to MailBox - Which should not be causing issue.

    2) 8:52 PM - Web Server - InternalOperationPlugin failure - This should be the issue

    Since you already isolated the issue to customization, I think there is some incompatibility issue in within entity and relationship.

    Can you share the error log after importing the Managed Package 1.

    Also, by any chance, is connection entity involved in the build?

    thanks,

    PS

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to identify error from Microsoft Trace report?

    Thanks Prashant.

    ===============================

    For trial. I have separated 2 Managed Package.

    ---------------------------------------

    Managed Package 1- Basic functionality that work with Sales Order, Products (Removed workflow)

    Managed Package 2- Workflow (License Process)

    I just tried to install both. It's really strange. The Managed Package 2(Workflow) got installed successfully. Managed Package 1 goes fail.

    ---------------------------------------

    Log of Managed Package 1:

    Publish StringMaps --> Unprocessed

    Root Components Insertion --> Unprocessed

    Dependencies Calculation --> Unprocessed

    ===============================

    In above case, Managed Package 1 is not able to install.

    However, I need to find rid where both work in single Managed Package.

    Please guide me

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: How to identify error from Microsoft Trace report?

    Hi Chhaya

    Whatever I said was related to on-premise

    If you are using online and still getting these issues, only Microsoft can resolve it. I still feel that there's a workflow on queues or emails which is making async services go wrong

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to identify error from Microsoft Trace report?

    Hi Prashant,

    Well, I am really not clear with your suggestion.

    I have used Service for License functionality. Do you mean by that(Services)?

    What do you mean by "Web Application Server" in case of CRM Cloud(Online)?

    However, I am able install my Plug-In in trial account of 365 online without any error.

    Thanks.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans