Hi,
We have two customers who have almost the same exception.
1. This exception comes when user is saving an order:
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Errors.ErrorInformation.LoadErrorDisplayText()
at Microsoft.Crm.Errors.ErrorInformation.get_DisplayTitle()
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WrapException(Exception exception)
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.ReturnJsonException(Exception exception)
at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)
at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8DA4CBDEDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>5965e6a7-71de-49f7-a329-bded2210cede</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Errors.ErrorInformation.LoadErrorDisplayText()
at Microsoft.Crm.Errors.ErrorInformation.get_DisplayTitle()
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WrapException(Exception exception)
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.ReturnJsonException(Exception exception)
at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)
at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8DA4CBDE</Message>
<Timestamp>2019-02-04T11:41:06.3359005Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
and this one when the user is opening an account form:
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Xml.XmlException: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(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): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #31201AF5Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>4d8a8b98-939a-4237-88e2-09c992db31ca</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.Xml.XmlException: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(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): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #31201AF5</Message>
<Timestamp>2019-02-05T08:48:50.8308657Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>4d8a8b98-939a-4237-88e2-09c992db31ca</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5F7748DE</Message>
<Timestamp>2019-02-05T08:48:50.8308657Z</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>
Both exceptions appeared this week.
Can someone help us, thank you :)