Users may receive and error importing a solution when an attribute's length has been reduced in Microsoft Dynamics CRM 2011

This article provides a resolution for the problem that occurs when you import a solution.

Applies to:   Microsoft Dynamics CRM 2011
Original KB number:   2705886

Symptoms

Users may receive the error below when importing a solution:

"Failure 0x80040203 Updating Attributename.subject.Length but it's not valid for update. Original value:500. New value:400."

Cause

This is a built-in feature that is designed to protect data integrity in the system. This is only enabled for fields that come out of the box.

Resolution

The steps below will resolve the issue:

  1. Within source environment for the customizations navigate to Settings, then click Customizations, then click Customize the System.
  2. Select the entity where this attribute resides, and then select Fields.
  3. Find the field in the list and double-click to open the properties of the field.
  4. Increase the length of the attribute to at least that of Original value from the error message.
  5. Select Save on the attribute.
  6. Select Save for the solution and then select Publish.
  7. Export the customizations.