A FetchXML statement that contains the <Link-Entity> statement may return incorrect data or empty data in Microsoft Dynamics CRM 4.0

Article translations Article translations
Article ID: 951206 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Consider the following scenarios:
  • You want to create a FetchXML statement in the Microsoft Dynamics CRM 4.0 Software Development Kit (SDK), and you use the <Link-Entity> statement to return some attributes of a linked entity.
  • You want to perform an advanced find query on a given entity in Microsoft Dynamics CRM 4.0. However, you modify the columns that are returned. Therefore, the query retrieves attributes of linked entities.
  • You want to modify a view of a particular entity in Microsoft Dynamics CRM 4.0 so that you display attributes of linked entities in additional columns.
In one of these scenarios, you may retrieve incorrect data or empty data from the linked entities. Additionally, you may also receive an error message resembles the following, depending on the scenario:
0x80041103
'Contact' entity doesn't contain attribute with Name = 'name'.
Platform
'Contact' entity doesn't contain attribute with Name = 'name'.
at Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName, NameMappingType mapping)
at Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName)
at Microsoft.Crm.BusinessEntities.BusinessEntity.PerformTypeCheck(String attributeName, Object attributeValue)
at Microsoft.Crm.BusinessEntities.BusinessEntity.SetAttributeValue(String attributeName, Object attributeValue)
at Microsoft.Crm.BusinessEntities.ResultAttribute.SetValue(Object value)
at Microsoft.Crm.BusinessEntities.ResultEntity.SetAttributeValue(String name, Object value)
at Microsoft.Crm.BusinessEntities.QueryProcessObject.CreateResultEntityFromDataReader(IDataReader reader, ResultEntityDescription resultEntityDescription, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.QueryProcessObject.CreateResultEntitiesFromDataReader(IDataReader reader, EntityExpression entityExpression, ResultEntityDescription resultEntityDescription, ExecutionContext context, Boolean& moreRecords)
at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveDataQueryAsResultXml(EntityExpression entityExpression, QueryStrategyType strategyType, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveQueryAsResultXml(EntityExpression entityExpression, QueryStrategyType strategyType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SavedQueryService.Execute(String fetchXml, ExecutionContext context)
InnerException Type:Microsoft.Crm.Metadata.AttributeMetadataNotFoundException

RESOLUTION

This problem is fixed in the latest cumulative update rollup for Microsoft Dynamics CRM 4.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
949256 Microsoft Dynamics CRM 4.0 updates and hotfixes

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
887283 Microsoft Business Solutions CRM software hotfix and update package naming standards

Properties

Article ID: 951206 - Last Review: January 20, 2012 - Revision: 3.3
APPLIES TO
  • Microsoft Dynamics CRM 4.0
Keywords: 
kberrmsg kbexpertiseinter kbautohotfix kbfix kbmbsmigrate kbqfe kbhotfixserver KB951206

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com