locked
Sub-grid throwing error in CRM 2011 RRS feed

  • Question

  • Hi

    I have added a sub-grid on contact form and give the specifications as shown below.

    I am getting below error when I am trying to open thr form. It is happening on IFD, On-premise and online. Is that I am doing something wrong?

    This is the error on log file.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9A8A6308Detail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9A8A6308</Message>
      <Timestamp>2013-08-02T04:23:39.8048585Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147220970</ErrorCode>
        <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A718EBB8</Message>
        <Timestamp>2013-08-02T04:23:39.8048585Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Friday, August 2, 2013 4:27 AM

All replies

  • I ran trace and found this message. I have tried this on OOB org and still getting issue. Any idea?

    >System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #AC8BB408: System.Xml.XmlException: System.InvalidOperationException: dependentAttributeName must be specified
    >   at Microsoft.Crm.Application.Platform.QueryDecorators.RetrieveByObjectQueryDecorator.DecorateInnerLink(QueryExpression query, String fromIntersectEntity, LinkEntity innerLinkEntity)
    >   at Microsoft.Crm.Application.Platform.QueryDecorators.RetrieveByObjectQueryDecorator.AddLinkEntity(QueryExpression query)
    >   at Microsoft.Crm.ApplicationQuery.BuildQuery()
    >   at Microsoft.Crm.ApplicationQuery.GetViewData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
    >   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---> System.InvalidOperationException: dependentAttributeName must be specified
    >   at Microsoft.Crm.Application.Platform.QueryDecorators.RetrieveByObjectQueryDecorator.DecorateInnerLink(QueryExpression query, String fromIntersectEntity, LinkEntity innerLinkEntity)
    >   at Microsoft.Crm.Application.Platform.QueryDecorators.RetrieveByObjectQueryDecorator.AddLinkEntity(QueryExpression query)
    >   at Microsoft.Crm.ApplicationQuery.BuildQuery()
    >   at Microsoft.Crm.ApplicationQuery.GetViewData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
    >   at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
    >   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
    >   --- End of inner exception stack trace ---
    >   at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
    >   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    >   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Friday, August 2, 2013 9:09 AM
  • Hi,

    You didnt see the error when form is without that sub grid?. In that case check any plugin running on the form and deactivate and check still the error persists.


    Arun Kumar G


    • Edited by Aronkumar Friday, August 2, 2013 9:28 AM
    Friday, August 2, 2013 9:28 AM
  • The error indicates that there is an issue with the view. Can you navigate to opportunities manually and open that view? Also check the view filter and post the conditions here.

    I know with some of the latest rollups there are issues with certain filters in views which cause random errors like this on some views.

    Hope that helps

    Paul


    If my response helped you find your answer please show your thanks by taking the time to "Mark As Answer" and "Vote As Helpful".

    Twitter LinkedIn Facebook Blog Magnetism

    Friday, August 2, 2013 9:55 AM