Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error caused by Quick View Form ErrorCode -2147220970 "Invalid PrincipalType=0"

Posted on by Microsoft Employee

After I add a quick view of my custom entity to a form, every time I access that form (either new or update) I receive error -2147220970 with the message "Invalid PrincipalType=0". After I close the error dialog, the quick view is visible, but the fields are not populated and they are not locked (I can edit). Furthermore, if I access the Create form from the parent record, I get the error dialog but the form never displays any fields. In this use case, I cannot even change to a different form. 

I can edit the parent record with no issues. If I remove the quick view from the child form, I can create new child records. So the error seems to be confined to the quick view of that parent. 

I created a new quick view form and used that on the child form, but that had the same error result.

Has anyone else seen this and found a way to diagnose and resolve the issue?

Complete ErrorDetails:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #398BCB86Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>d1432b4d-09ea-44fa-8a75-1154530623fe</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #398BCB86</Message>
<Timestamp>2018-04-04T20:03:57.3405513Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>d1432b4d-09ea-44fa-8a75-1154530623fe</ActivityId>
<ErrorCode>-2147220322</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Invalid PrincipalType=0</Message>
<Timestamp>2018-04-04T20:03:57.3405513Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error caused by Quick View Form ErrorCode -2147220970 "Invalid PrincipalType=0"

    Not sure if it helps, but here are the multiple entries that occurred at the time of the error (many seem to report the same error so I shared all in case one had key information the others did not):

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:9d9dbf8b-45bb-4585-a19f-c743ebef9a57 |Thread:   39 |Category: Exception |User: 3afca261-9d2a-4006-91ce-240e50561114 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | CrmSecurityException..ctor  ilOffset = 0x9

    at CrmSecurityException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x9

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xF4

    at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)  ilOffset = 0x1C8

    at Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)  ilOffset = 0xAF

    at Activator.CreateInstance(Type type, Object[] args)  ilOffset = 0x0

    at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)  ilOffset = 0x63

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x64

    at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x93

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0xDE

    at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x35

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x218

    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 = 0x14E

    at Lazy`1.CreateValue()  ilOffset = 0x60

    at Lazy`1.LazyInitValue()  ilOffset = 0x80

    at ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)  ilOffset = 0x0

    at ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)  ilOffset = 0x0

    at FormDataPage.Render(HtmlTextWriter writer)  ilOffset = 0x11C

    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 = 0x34

    at Page.ProcessRequest()  ilOffset = 0x14

    at Page.ProcessRequest(HttpContext context)  ilOffset = 0x38

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStepImpl(IExecutionStep step)  ilOffset = 0x64

    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

    >Crm Exception: Message: Invalid PrincipalType=0, ErrorCode: -2147220322, InnerException: Microsoft.Crm.CrmSecurityException: Invalid PrincipalType=0

      at Microsoft.Crm.BusinessEntities.SecurityPrincipal.ValidateSecurityPrincipalType(Int32 type)

      at Microsoft.Crm.BusinessEntities.SecurityPrincipal..ctor(Int32 type, Guid principalId)

      at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx(ExecutionContext context, SecurityAttributes attributes, AccessRights rights, Int32 errorCode)

      at Microsoft.Crm.BusinessEntities.SecurityExtension.PostRetrieveHandler(ExtensionEventArgs e)

      at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PostRetrieveEventHandler.Invoke(Object sender, ExtensionEventArgs e)

      at Microsoft.Crm.BusinessEntities.BusinessProcessObject.TryRetrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget, BusinessEntity& businessEntity)

      at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)

      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)

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:9d9dbf8b-45bb-4585-a19f-c743ebef9a57 |Thread:   39 |Category: Platform |User: 3afca261-9d2a-4006-91ce-240e50561114 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | MessageProcessor.Execute  ilOffset = 0x218

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

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   39 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | ExceptionUtility.CreateCrmExceptionFromServiceFault  ilOffset = 0x1B

    at ExceptionUtility.CreateCrmExceptionFromServiceFault(FaultException`1 fe)  ilOffset = 0x1B

    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 = 0x14E

    at Lazy`1.CreateValue()  ilOffset = 0x60

    at Lazy`1.LazyInitValue()  ilOffset = 0x80

    at ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)  ilOffset = 0x0

    at ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)  ilOffset = 0x0

    at FormDataPage.Render(HtmlTextWriter writer)  ilOffset = 0x11C

    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 = 0x34

    at Page.ProcessRequest()  ilOffset = 0x14

    at Page.ProcessRequest(HttpContext context)  ilOffset = 0x38

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStepImpl(IExecutionStep step)  ilOffset = 0x64

    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

    >Crm Exception: Message: Invalid PrincipalType=0, ErrorCode: -2147220322

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:9d9dbf8b-45bb-4585-a19f-c743ebef9a57 |Thread:   39 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | ErrorInformation..ctor  ilOffset = 0xA

    >MSCRM Error Report:

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

    Error: Invalid PrincipalType=0

    Error Number: 0x8004049E

    Error Message: Invalid PrincipalType=0

    Error Details: Invalid PrincipalType=0

    Source File: Not available

    Line Number: Not available

    Request URL:

    Stack Trace Info: [CrmException: Invalid PrincipalType=0]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   39 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | HttpApplication.RecordError  ilOffset = 0x41

    >Request xxxxxxxxxxxxxxxxxx/.../Data.aspx;_CreateFromType=10033&counter=1522936651906&create=True&etc=10035&formid=eadc8169-6ed2-411e-8d26-357a3598320d&oid=&pagemode=iframe&process=&theme=Outlook15White failed with exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Invalid PrincipalType=0

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

      at Microsoft.Crm.Application.Utility.PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters)

      at Microsoft.Crm.Application.Commands.ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)

      at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:9d9dbf8b-45bb-4585-a19f-c743ebef9a57 |Thread:   39 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | MainApplication.Application_Error  ilOffset = 0xB5

    >MSCRM Error Report:

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

    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x8004049E

    Error Message: Invalid PrincipalType=0

    Error Details: Invalid PrincipalType=0

    Source File: Not available

    Line Number: Not available

    Request URL: xxxxxxxxxxxxxxxxxx/.../Data.aspx;_CreateFromType=10033&counter=1522936651906&create=True&etc=10035&formid=eadc8169-6ed2-411e-8d26-357a3598320d&oid=&pagemode=iframe&process=&theme=Outlook15White

    Stack Trace Info: [CrmException: Invalid PrincipalType=0]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

      at Microsoft.Crm.Application.Utility.PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters)

      at Microsoft.Crm.Application.Commands.ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)

      at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   39 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | ExceptionConverter.ToSingleFaultOther  ilOffset = 0x30

    >System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #23094EA4: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Invalid PrincipalType=0

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

      at Microsoft.Crm.Application.Utility.PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters)

      at Microsoft.Crm.Application.Commands.ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)

      at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2018-04-05 08:57:31.755] Process: w3wp |Organization:9d9dbf8b-45bb-4585-a19f-c743ebef9a57 |Thread:   39 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | InlineEditJsonConverter.WrapException  ilOffset = 0xC

    >MSCRM Error Report:

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

    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x8004049E

    Error Message: Invalid PrincipalType=0

    Error Details: Invalid PrincipalType=0

    Source File: Not available

    Line Number: Not available

    Request URL:

    Stack Trace Info: [CrmException: Invalid PrincipalType=0]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

      at Microsoft.Crm.Application.Utility.PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters)

      at Microsoft.Crm.Application.Commands.ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)

      at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2018-04-05 08:57:31.770] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   39 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 |ActivityId: 84ac4759-9cc1-4550-b1f7-aed7364cfd47 | ExceptionConverter.ToSingleFaultOther  ilOffset = 0x30

    >System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7AE53D4D: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Invalid PrincipalType=0

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

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

      at Microsoft.Crm.Application.Utility.PlatformEntityMap.ProcessParameters(Entity targetEntity, HashSet`1 keys, NameValueCollection parameters)

      at Microsoft.Crm.Application.Commands.ApplicationCommand.MapEntity(EntityType targetEntityType, NameValueCollection parameters, IMapEntityFactory mapEntityFactory)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.PopulateEntityWithDefaultDataIfAvailable()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)

      at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Error caused by Quick View Form ErrorCode -2147220970 "Invalid PrincipalType=0"

    hi,

    would you mind to share the log here? remember to censor the organization url.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error caused by Quick View Form ErrorCode -2147220970 "Invalid PrincipalType=0"

    I appreciate the suggestion, but tracing only reveals the exact same information "Invalid PrincipalType=0".

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Error caused by Quick View Form ErrorCode -2147220970 "Invalid PrincipalType=0"

    Hi,

    if you are using On prem, i would advised you to turn on the tracing to get meaningful error message.

    kishored4.wordpress.com/.../enable-tracing-for-dynamics-crm-on-premise

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans