Home > MS CRM 4.0 > Error When trying to export and/or publish

Error When trying to export and/or publish


This morning i was trying publish customisation that i have imported from my test box CRM and it was keep on showing error message saying not able to export.After while digging into the Trace files idenfied the cause of the error.

The issue was with one entity where some attibutes are exist in form field but not really in the entity .

Issue :

This problem occurs for one of the following reasons:

  • An entity form has an attribute that does not exist.
  • A primary entity of a parental relationship is exported later. When a parental relationship is created between two entities, the relationship attribute is added to the related entity. If only the primary entity is exported and then imported into a new environment, the import is successful. However, if the primary entity is exported later, the relationship does not exist.

Solution :

To resolve this problem, turn on platform tracing during the export process, find the entity that causes the problem, and then delete the relationship attribute that exists on the form of the entity that is being exported. To do this, follow these steps:

  1. Find the entity that causes the problem. To do this, follow these steps:
    1. In Microsoft Dynamics CRM, turn on platform tracing. To do this, use the method that is described in Microsoft Knowledge Base article 907490. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
      907490  (http://support.microsoft.com/kb/907490/ ) How to enable tracing in Microsoft Dynamics CRM
    2. Export the Microsoft Dynamics CRM customizations.

      Note When you export the customizations, the platform trace points to the entity that causes the problem.

    3. View the error message in the platform trace file to find the entity that causes the problem.
  2. Find the attribute that causes the problem. To do this, use the appropriate method.

    Note The error message in the platform trace file does not display the exact attribute that causes the problem.

    • Open the Form editor, and then find the attribute that causes the problem. To do this, use one of the following methods:
      • Look for an attribute that is missing a label.
      • Look for an attribute the properties of which have only the Name value and do not have the Display Name value or the Description value.
    • Create a new record for the entity that you found, and then find the attribute that causes the problem.

      Note If the Dev Errors value is set to “On” in the Web.config file, you may receive an error message that resembles the following:

      Error Description:
      Entity_name‘ entity does not contain attribute that has Name = ‘Attribute_name‘.

      Note In this error message, Attribute_name is a placeholder for the actual name of the attribute that you are trying to find.

  3. Create a temporary attribute that uses the same name as the attribute in the entity form.
  4. If the attribute is not required for the deployment, follow these steps:
    1. Delete the attribute from the entity form.
    2. Publish the entity.
    3. Delete the temporary attribute.

The following article explians in details about solution for this issue

http://support.microsoft.com/kb/947096

Advertisements
Categories: MS CRM 4.0
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: