locked
Exception type: CrmArgumentException , Exception message: Cannot add attribute from of type partylist in a condition , advance search phone call RRS feed

  • Question

  • while doing advanced find in my org on phone call, i selected from field, then i get argument exception.

    if i do this in another org, it works fine....

    below is the event viewer details

    Event code: 3005

    Event message: An unhandled   exception has occurred.

    Event time: 13/9/2013 5:11:23   PM

    Event time (UTC): 13/9/2013   9:11:23 AM

    Event ID:   50e5f1731078425abce195415f682f94

    Event sequence: 864

    Event occurrence: 10

    Event detail code: 0

     

    Application information:

        Application   domain: /LM/W3SVC/2/ROOT-1-130235340940535000

        Trust   level: Full

        Application   Virtual Path: /

        Application   Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\

        Machine   name: XRM

     

    Process information:

        Process   ID: 3820

        Process   name: w3wp.exe

        Account   name: MSCRM\ADMINISTRATOR

     

    Exception information:

        Exception   type: CrmArgumentException

        Exception   message: Cannot add attribute from of type partylist in a condition

       at   Microsoft.Crm.Query.ConditionExpressionCollection.Add(ConditionExpression   element)

       at   Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(FilterExpression criteria)

       at Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(EntityExpression   entity)

       at   Microsoft.Crm.Query.EntityExpression.InternalDeserializeFromFetchXml(String   xmlInfo, ParsingConditionValuesOption parsingOption)

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.SetupQueryBuilder(QueryBuilder   queryBuilder, View view)

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()

       at   Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData()

       at   Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter   output)

       at   Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter   output)

       at   Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter   output)

       at   Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter   output)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer, ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection   children)

       at   System.Web.UI.Page.Render(HtmlTextWriter writer)

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

    Cannot add attribute from of   type partylist in a condition

     

    Request information:

        Request   URL: http://xrm:5555/ICACRM/AdvancedFind/fetchData.aspx?EntityCode=112&QueryId={00000000-0000-0000-00AA-000010001028}&ViewType=1039&pagemode=iframe&sitemappath=Workplace|MyWork|nav_dashboards  

        Request   path: /ICACRM/AdvancedFind/fetchData.aspx

        User   host address: fe80::1960:804d:95b2:ac66C:\Program Files\Microsoft Dynamics   CRM\CRMWeb\

        User:   MSCRM\ADMINISTRATOR

        Is   authenticated: True

        Authentication   Type: Negotiate

        Thread   account name: MSCRM\ADMINISTRATOR

     

    Thread information:

        Thread   ID: 19

        Thread   account name: MSCRM\ADMINISTRATOR

        Is   impersonating: False

        Stack   trace:    at   Microsoft.Crm.Query.ConditionExpressionCollection.Add(ConditionExpression   element)

       at   Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(FilterExpression criteria)

       at   Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(EntityExpression entity)

       at   Microsoft.Crm.Query.EntityExpression.InternalDeserializeFromFetchXml(String   xmlInfo, ParsingConditionValuesOption parsingOption)

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.SetupQueryBuilder(QueryBuilder   queryBuilder, View view)

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()

       at   Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()

       at   Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData()

       at   Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter   output)

       at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter   output)

       at   Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter   output)

       at   Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter   output)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter   writer)

       at   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,   ICollection children)

       at   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer, ICollection children)

       at   System.Web.UI.Page.Render(HtmlTextWriter writer)

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

     

    Custom event details:


    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com

    Saturday, September 14, 2013 2:57 AM

Answers

  • You shouldn't be able to select the from (sender) field directly from advanced find. You will need to go through the activity parties (see below).

    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

    • Proposed as answer by Sam - Inogic Monday, September 16, 2013 3:33 AM
    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:19 AM
    • Unmarked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:19 AM
    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Saturday, September 14, 2013 10:18 PM
  • Hi Paul,

    you are right. why from is coming in the search field? and if i do the same in one other org it works there with from.

    any thought on this?

    Regards,

    yes.sudhanshu


    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com

    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Monday, September 16, 2013 4:54 AM
  • Paul, your catch is right to make the search.

    how the From was showing in the Advanced Find is, my developer has done multi edit for the fields and made From as searchable.

    then when the users' tried to do advanced find, they selected From and then the error come up.

    by default all the party lists are non searchable and disabled also. but you can edit if you are doing multi edit (which is a weird thing in  ms crm).

    Solution: i reverted back the searchable and users' can not see that in the search list.

    as they ahd requirement to search directly, i created a text box and copied the value of from patylist to the textbox and then done.

    Regards,

    Sudhanshu


    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com

    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Wednesday, September 18, 2013 4:23 AM

All replies

  • You shouldn't be able to select the from (sender) field directly from advanced find. You will need to go through the activity parties (see below).

    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

    • Proposed as answer by Sam - Inogic Monday, September 16, 2013 3:33 AM
    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:19 AM
    • Unmarked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:19 AM
    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Saturday, September 14, 2013 10:18 PM
  • Hi Paul,

    you are right. why from is coming in the search field? and if i do the same in one other org it works there with from.

    any thought on this?

    Regards,

    yes.sudhanshu


    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com

    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Monday, September 16, 2013 4:54 AM
  • Paul, your catch is right to make the search.

    how the From was showing in the Advanced Find is, my developer has done multi edit for the fields and made From as searchable.

    then when the users' tried to do advanced find, they selected From and then the error come up.

    by default all the party lists are non searchable and disabled also. but you can edit if you are doing multi edit (which is a weird thing in  ms crm).

    Solution: i reverted back the searchable and users' can not see that in the search list.

    as they ahd requirement to search directly, i created a text box and copied the value of from patylist to the textbox and then done.

    Regards,

    Sudhanshu


    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com

    • Marked as answer by yes.sudhanshu Wednesday, September 18, 2013 4:23 AM
    Wednesday, September 18, 2013 4:23 AM