Upgraded from 2011 to 2016 (while going through the lovely >2013 >2015 > 2016 hop), after upgrade when going to an account > cases from the drop down ribbon menu, under the case associated view section theres an "+Add Case" button, this no longer seems to work properly. When clicking it a new case window opens, account name is populated in customer field and another custom field (dealer) we have. After the required fields are filled out and they go to try and save the case we get
<ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" /><Message>System.Collections.Generic.KeyNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #42904C6C</Message><Timestamp>2016-12-22T16:20:23.2630344Z</Timestamp>
In the async log we get
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()
[2016-12-22 11:19:49.696] Process: w3wp |Organization:9ca65437-dedc-4660-987c-769849abd2dd |Thread: 65 |Category: ObjectModel |User: 1ec4e59e-6c87-47d9-807f-888079601c08 |Level: Error |ReqId: 6a8bf12a-cb12-45ec-b226-33d0ca7d2b9f | CustomizationService.InitializeFrom ilOffset = 0x0
at CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String targetEntityName, TargetFieldType targetFieldType, ExecutionContext context) ilOffset = 0x0
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x16
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0x6C
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x3F
at InternalOperationPlugin.Execute(IServiceProvider serviceProvider) ilOffset = 0x43
at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) ilOffset = 0x0
at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65
at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xDD
at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1EB
at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4
at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D
at ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId) ilOffset = 0x0
at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x0
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x4B
at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x0
at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34
at PlatformCommand.XrmExecuteInternal() ilOffset = 0xBC
at InitializeFromCommand.Execute() ilOffset = 0x3B
at PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters) ilOffset = 0x61
at ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory) ilOffset = 0x243
at ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable() ilOffset = 0x6C
at ReadFormDataBuilder.LazyLoadEntity() ilOffset = 0x116
at Lazy`1.CreateValue() ilOffset = 0x60
at Lazy`1.LazyInitValue() ilOffset = 0x80
at ReadFormDataBuilder.BuildFormDataJson() ilOffset = 0x0
at ReadFormDataBuilder.RetrieveFormattedEntityData(Boolean isTurboForm) ilOffset = 0x13
at QuickFormControl.BuildReadFormDataObject(EntityBase parentEntity) ilOffset = 0xD5
at <>c__DisplayClassa.<AddCustomControlDataJson>b__9(ICrmControl control, ControlDescriptor controlDescriptor) ilOffset = 0x74
at FormMediator.ProcessControlHierarchy(Action`2 controlHandler) ilOffset = 0x1C7
at ReadFormDataBuilder.RetrieveFormattedEntityData(Boolean isTurboForm) ilOffset = 0x70
at FormDataPage.Render(HtmlTextWriter writer) ilOffset = 0xD0
at Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) ilOffset = 0x22
at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x8A4
at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x3C
at Page.ProcessRequest() ilOffset = 0x14
at Page.ProcessRequest(HttpContext context) ilOffset = 0x38
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x187
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27A
at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31
at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xB0
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x131
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1E7
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0>InitializeFrom cannot be invoked from source entity of type account with id {ED21F4BE-D459-E311-BADF-00155D649204} to target entity type slakpiinstance because there is no entity map defined between these two entities.
How can I find what specifically needs mapped? I'm assuming its something to do with the relationships between account and case and I'm missing a field somehow but not sure how to tell exactly whats missing. Adding a case through other means works properly, just seems like its when it is triggered from the account page.









