Microsoft KB Archive/911492

= Error message when you use a &quot;Quick Find&quot; view or an &quot;Advanced Find&quot; view in Microsoft Dynamics CRM 3.0: &quot;No Attribute&quot; =

Article ID: 911492

Article Last Modified on 8/21/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0

-



SYMPTOMS
Consider the following scenario. You create a custom attribute in Microsoft Dynamics CRM 3.0. You add that custom attribute to a Quick Find view or to an Advanced Find view. Later, you delete the custom attribute from Microsoft Dynamics CRM 3.0. Then, when you use the Quick Find view or the Advanced Find view, you receive the following error message:

No Attribute

If DevErrors are enabled in the Web.config file, you also receive the following error message:

Microsoft CRM Unhandled Error Details: Server Error in '/' Application.

' ' entity doesn't contain attribute with Name = ' '.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.Crm.Metadata.AttributeMetadataNotFoundException: ' ' entity doesn't contain attribute with Name = ' '.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: [AttributeMetadataNotFoundException: ' ' entity doesn't contain attribute with Name = ' '.] Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName, NameMappingType mapping) +76 Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName) +7 Microsoft.Crm.ViewCache.FixQuickFindFilter(Int32 EntityCode, String FetchXML) +149 Microsoft.Crm.ViewCache.GetView(String viewId, ViewType viewType) +873 Microsoft.Crm.Web.Tools.Views.ViewManagerPage.Setup(Object sender, DataEventArgs e) +53 Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, User user, String objectId, Entity entity) +176 Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId) +89 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) +56 Microsoft.Crm.Application.Forms.EndUserForm.Execute(Entity entity) +13 Microsoft.Crm.Web.Tools.Views.ViewManagerPage.ConfigureForm +623 Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +30 System.Web.UI.Control.PreRenderRecursiveInternal +62 System.Web.UI.Page.ProcessRequestMain +1499 Microsoft CRM Application Error Report:

Error Description: ' ' entity doesn't contain attribute with Name = 'crm_repro1'. Error Details: 'Account' entity doesn't contain attribute with Name = ' '.

Error Number: 0x80041103

Note The  placeholder in the error message is a placeholder for the entity from which you added the custom attribute. The  placeholder is a placeholder for the actual name of the custom attribute.



WORKAROUND
To work around this problem, add the custom attribute again in Microsoft Dynamics CRM 3.0. When you do this, you must use the same name for the custom attribute. Delete the custom attribute from the Quick Find view or from the Advanced Find view. Then, delete the custom attribute from Microsoft Dynamics CRM 3.0.

Step 1: Add the custom attribute again

 * 1) Click Settings, click Customization, click Customize Entities, and then double-click the entity to which you want to add the custom attribute.
 * 2) Click Attributes, and then click New.
 * 3) Make sure that you use the same display name and the same schema name that you used for the custom attribute that you deleted. Then, click Save and Close.

Step 2: Delete the custom attribute from the Quick Find View

 * 1) Click Settings, click Customization, click Customize Entities, and then double-click the entity from which you want to delete the custom attribute.
 * 2) Click Forms and Views.
 * 3) In the Type column, locate Quick Find View.
 * 4) Double-click Quick Find View.
 * 5) Locate the custom attribute in the column, and then select the custom attribute. Click the Remove button, and then click Save and Close.

Step 3: Delete the custom attribute from the Advanced Find view

 * 1) Click Settings, click Customization, click Customize Entities, and then double-click the entity from which you want to delete the custom attribute.
 * 2) Click Forms and Views.
 * 3) In the Type column, locate Advanced Find View.
 * 4) Double-click Advanced Find View.
 * 5) Locate the custom attribute in the column, and then select the custom attribute. Click the Remove button, and then click Save and Close.

Step 4: Delete the custom attribute from Microsoft Dynamics CRM

 * 1) Click Settings, click Customization, click Customize Entities, and then double-click the entity from which you want to delete the custom attribute.
 * 2) Click Attributes, and then select the attribute that you want to delete.
 * 3) Click the Delete the selected attribute button, click OK, click Actions, and then click Publish.
 * 4) Click Save and Close.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: crm crm3.0 crm 30

Keywords: kbtshoot kbmbscustomization kberrmsg kbmbsmigrate kbbug KB911492

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.