Microsoft KB Archive/911401

= Error message in the Application log when an event callout is invoked for an entity in Microsoft Dynamics CRM: &quot;General config file format error&quot; =

Article ID: 911401

Article Last Modified on 3/5/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0
 * Microsoft CRM Software Development Kit

-





SYMPTOMS
When an event callout is invoked for an entity in Microsoft Dynamics CRM 3.0, the Application log may display an error message that resembles the following error message:

Error: General config file format error: Microsoft.Crm.Metadata.AttributeMetadataNotFoundException: ' ' entity doesn't contain attribute with Name = ' '.

at Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName, NameMappingType mapping)

at Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName)

at Microsoft.Crm.Callout.SubscriptionEntry.AddImageAttribute(String attributeName, Boolean bPreImage)

at Microsoft.Crm.Callout.SubscriptionEntry.LoadImageAttributes(XmlNode xn)

at Microsoft.Crm.Callout.SubscriptionEntry.Load(XmlNode xn)

at Microsoft.Crm.Callout.EventEntry.Load(XmlNode xn)

at Microsoft.Crm.Callout.EntityEntry.Load(XmlNode xn)

at Microsoft.Crm.Callout.CalloutConfig.LoadEntityEntry(XmlNode xn)

at Microsoft.Crm.Callout.CalloutConfig.Load(XmlDocument xd)

at Microsoft.Crm.Callout.CalloutConfig.Load

Note The  placeholder represents an actual entity. The  placeholder represents an actual attribute name.

Additionally, Microsoft CRM may not process valid subscriptions.

This problem occurs when you have multiple subscriptions for event callouts for an entity.



CAUSE
This problem occurs because the Prevalue attribute or the Postvalue attribute is invalid.



WORKAROUND
To work around this problem, use one of the following methods.

Method 1: Remove the invalid attribute
You can remove the invalid attribute from the subscription by modifying the Callout.config.xml file.

Notes  You can use Notepad to modify the Callout.config.xml file. By default, the Callout.config.xml file is located in the following directory:

C:\Program Files\Microsoft CRM\server\bin\assembly



For example, you can remove the &quot; Name &quot; line if the content of the Callout.config.xml file is as follows.       <subscription assembly=&quot;CalloutSample2.dll&quot; class=&quot;CalloutSample2.CalloutComponent&quot;> Name </callout.config> Note Entity is a placeholder that represents an actual entity. Name is a placeholder that represents the actual name of the invalid attribute.

Method 2: Replace the invalid attribute
You can replace the invalid attribute with a valid attribute by modifying the Callout.config.xml file.

Notes  You can use Notepad to modify the Callout.config.xml file.</li> By default, the Callout.config.xml file is located in the following directory:

C:\Program Files\Microsoft CRM\server\bin\assembly

</li></ul>

<div class="status_section">

STATUS
This behavior is by design.

<div class="references_section">