Microsoft KB Archive/899808

= Microsoft CRM does not save the default value for a custom Boolean field =

Article ID: 899808

Article Last Modified on 8/11/2005

-

APPLIES TO


 * Microsoft CRM 1.2

-





SYMPTOMS
You add a custom Boolean field in Microsoft Business Solutions CRM. After you enter a default value, the program does not save that default value.



CAUSE
This problem occurs because you published the custom Boolean field before you saved the default value.



WORKAROUND
To work around this issue, you must use the following order to publish customizations and to add the values for the custom Boolean field.

Step 1: Add the custom Boolean field in Deployment Manager
 On the server that is running Microsoft CRM, click Start, point to Programs, point to Microsoft CRM, and then click Deployment Manager. Expand Schema Manager, right-click Account, point to New, and then click Schema Field. Type entries in all the required fields, and then click OK.

Step 2: Add the Boolean field to the account form, and then add the default value to the Boolean field
 Open Microsoft CRM, click Home, click System Customizations, click Account, and then click Customize Form. Click Add Fields, click the Boolean field that you created, and then click OK.</li> Double-click the Boolean field to open the Boolean Field Properties dialog box, and then click the Values tab.</li> In the Boolean values list, click False, and then click Edit.</li> Type No, and then click OK.</li> In the Boolean values list, click True, and then click Edit.</li> Type Yes, and then click OK.</li> Click Yes, and then click Move Up so that Yes is at the top of the Boolean values list.</li> In the Default Value list, click No, and then click OK.</li> Click Save and Close.</li></ol>

Step 3: Publish the customization
 Click Start, point to All Programs, point to Microsoft CRM, and then click Deployment Manager.</li> Right-click Deployment Manager, point to All Tasks, and then click Publish Customizations.</li> Click Account, and then click Next.</li> Click Add, double-click the Microsoft CRM server where you want to publish the customizations, and then click Finish.</li></ol>

Step 4: Restart Internet Information Services (IIS)

 * On the Microsoft CRM server, click Start, click Run, type iisreset, and then click OK.

<div class="status_section">

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

<div class="moreinformation_section">

Step 1: Add the custom Boolean field in Deployment Manager
 On the server that is running Microsoft CRM, click Start, point to Programs, point to Microsoft CRM, and then click Deployment Manager.</li> Expand Schema Manager, right-click Account, point to New, and then click Schema Field.</li> <li>Type entries in all the required fields, and then click OK.</li></ol>

Step 2: Publish the customization
<ol style="list-style-type: lower-alpha;"> <li>In Deployment Manager, right-click Deployment Manager, point to All Tasks, and then click Publish Customizations.</li> <li>Click Account, and then click Next.</li> <li>Click Add, double-click the Microsoft CRM server where you want to publish the customizations, and then click Finish.</li></ol>

Step 3: Add the Boolean field to the account form, and then add the default value to the Boolean field
<ol style="list-style-type: lower-alpha;"> <li>Open Microsoft CRM, click Home, click System Customizations, click Account, and then click Customize Form.</li> <li>Click Add Fields, click the Boolean field that you created, and then click OK.</li> <li>Double-click the Boolean field to open the Boolean Field Properties dialog box, and then click the Values tab.</li> <li>Click False in the Boolean values list, and then click Edit.</li> <li>Type No, and then click OK.</li> <li>In the Boolean values list, click True, and then click Edit.</li> <li>Type Yes, and then click OK.</li> <li>Click Yes, and then click Move Up so that Yes is at the top of the Boolean values list.</li> <li>In the Default Value list, click No, and then click OK.</li> <li>Click Save and Close.</li></ol>

Step 4: Restart IIS

 * On the Microsoft CRM server, click Start, click Run, type iisreset, and then click OK.

The default value is not correctly saved. In this example, the default value for the custom Boolean field is set back to Yes.

Keywords: kbbug kbmbsmigrate kbmbscustomization KB899808

-

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

© Microsoft Corporation. All rights reserved.