Microsoft small business knowledge base

Article ID: 951206 - Last Review: January 16, 2015 - Revision: 4.0

Hotfix Download Available
View and request hotfix downloads
This article has been archived. It is offered "as is" and will no longer be updated.


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:
'Contact' entity doesn't contain attribute with Name = 'name'.
'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


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


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

Applies to
  • Microsoft Dynamics CRM 4.0
kbnosurvey kbarchive kberrmsg kbexpertiseinter kbautohotfix kbfix kbmbsmigrate kbqfe kbHotfixServer KB951206
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support