Microsoft KB Archive/839587

= You receive a &quot;Publish completed with errors&quot; error message when you add a new picklist value to the Preferred Contact field in Microsoft CRM =

Article ID: 839587

Article Last Modified on 9/20/2006

-

APPLIES TO


 * Microsoft CRM 1.2

-





SYMPTOMS
You add a new picklist value to the Preferred Contacts field for the account object. When you publish the customization in Deployment Manager, you receive the following error message:

Publish completed with errors. Please see event log for details.

The error in the event log will be similar to the following:

Event Type: Error

Event Source: DMSNAPIN

Event Category: None

Event ID: 0

Date: 1/28/2005

Time: 11:19:50 AM

User: N/A

Computer: CRMSERVER

Description: PopulateStringMap Error: Object reference not set to an instance of an object. StackTrace: at Microsoft.Crm.Tools.ImportExportXml.XmlCustomization.PopulateStringMap(Object Progress)

For more information, see Help and Support Center at http://support.microsoft.com.



CAUSE
The problem is an error in the XML file that is used when the customization is published in Deployment Manager. The preferredmethodcontactcode picklist has the nextvalue attribute set incorrectly to 6 instead of 7. This causes the error when Microsoft CRM inserts new picklist values into the StringMap table. This table is located in the _MSCRM SQL database.



RESOLUTION
Microsoft CRM has a fix for this problem that is part of a cumulative update. The cumulative update information is described in the following Microsoft Knowledge Base article:

904435 Update Rollup 2 is available for Microsoft CRM 1.2



Steps to customize the Account form

 * 1) Start Microsoft CRM.
 * 2) Click Home, click Settings, and then click System Customization.
 * 3) Click Accounts, and then click Customize Form.
 * 4) Click the Administration tab.
 * 5) Double-click Preferred, click the Values tab, and then click Add.
 * 6) Type 10 in the Label text box, and then click OK.
 * 7) Click Save and Close.

Steps to publish the customization

 * 1) Start Microsoft CRM Deployment Manager on the Microsoft CRM server. To do this, click Start, point to All Programs, point to Microsoft CRM, and then point to Deployment Manager.
 * 2) Right-click Deployment Manager, click All Tasks, and then click Publish Customization.
 * 3) Click Account, and then click Next.
 * 4) On the Select Web Server page, click Add, click the   where you are publishing the customization, click Add, and then click Finish. The customization will finish with the error listed in the Symptoms section.
 * 5) Click OK to close the Status window.



MORE INFORMATION
For more information about the terminology that is used to describe Microsoft product updates, click the following article numbers to view the articles 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

Keywords: kberrmsg kbqfe kbprb kbmbsmigrate kbhotfixserver kbmbscustomization KB839587

-

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

© Microsoft Corporation. All rights reserved.