Microsoft KB Archive/946273

= How to troubleshoot common mail merge issues in Microsoft Dynamics CRM 4.0 =

Article ID: 946273

Article Last Modified on 1/4/2008

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0

-



INTRODUCTION
This article describes methods that you can use to troubleshoot common issues that may occur when you use the Mail Merge functionality in Microsoft Dynamics CRM 4.0. This article also provides answers to frequently asked questions when you use the Mail Merge functionality in Microsoft Dynamics CRM 4.0.



You cannot track a sent e-mail message by using the Mail Merge function and an e-mail format that differs from HTML
If you use the Mail Merge function to send an e-mail message, Microsoft Dynamics CRM 4.0 may be unable to track the e-mail message. You may receive the following error message:

Process:OUTLOOK |Thread:2112 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMapiEventsHandler::HandleEvent File: c:\bt\596\src\application\outlook\addin\mapieventshandler.cpp Line: 189

>hr = 0x80004005

Cause

This issue may occur when the Mail Merge function uses the plain text mail format or the attachment mail format.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

908024 Error message when you try to mail merge to electronic mail in Word

Workaround

To work around this issue, use the HTML mail format. To do this, follow these steps:
 * 1) Run the Mail Merge function.
 * 2) Under Step 4 of 4 in the Merge task pane, click Electronic Mail.
 * 3) In the Merge to E-mail dialog box, click HTML in the Mail format box, and then click OK.

&quot;Invalid Merge Field&quot; error message when you use an existing mail merge quote template
If you use an existing mail merge quote template that you used for Microsoft Dynamics CRM 3.0, some fields that are used in the Microsoft Dynamics CRM 3.0 data source change in the Microsoft Dynamics CRM 4.0 data source. For example, the &quot;LastItem&quot;, &quot;LineItem&quot;, &quot;Bill_To&quot;, and &quot;Ship_To&quot; fields do not match a Microsoft Dynamics CRM 4.0 field. Additionally, you receive an &quot;Invalid Merge Field&quot; error message.

Resolution

To resolve this problem, you must map the CRM 3.0 mail merge template data source fields that are listed in the following table to CRM 4.0 mail merge quote template data source fields in the existing mail merge quote template.

Error message when you complete a mail merge: &quot;Microsoft Dynamics CRM Mail Merge is already running&quot;
When you try to complete a mail merge operation, you receive the following error message:

Microsoft Dynamics CRM Mail Merge is already running. Only one mail merge can occur at a time. To start a new one, close Microsoft Word, which will stop the current mail merge and then start a new one.

Resolution

To resolve this problem, close Windows Internet Explorer or Microsoft Office Outlook, depending on the application that you used to start the mail merge operation. Then, restart the mail merge operation.

Match fields are not set when you use the Mail Merge function
After you perform a mail merge operation from the Microsoft Dynamics CRM Web application, mail merge field mappings are not set when you click Match Fields in the mail merge Microsoft Office Word document. For example, you click Insert Merge Field, and then you click Match Fields to link the Microsoft Dynamics CRM data source fields to the standard Word fields. When you do this, the fields are not automatically matched. Therefore, you cannot use the Address Block and Greeting Line Word mail merge features unless you manually match the Microsoft Dynamics CRM fields to the Word fields.

Workaround

To work around this issue, use one of the following methods:
 * Map the fields manually. For example, map the Microsoft Dynamics CRM &quot;Address 1&quot; field to the Microsoft Word &quot;Address_1_Street_1&quot; field.
 * Use Microsoft Dynamics CRM for Microsoft Office Outlook to perform the mail merge. The Microsoft Dynamics CRM Client software automatically maps the Microsoft CRM fields to the Microsoft Word fields.

Closing Internet Explorer or Outlook will not upload the mail merge template
When you perform a mail merge operation in Microsoft Dynamics CRM 4.0 and you click Upload Template to CRM, the template does not upload to Microsoft Dynamics CRM. This problem occurs if you close Internet Explorer or Outlook during the merge process.

Workaround

If you want to upload a mail merge template, do not close Internet Explorer or Outlook until you complete the mail merge process. If you close Outlook or Internet Explorer, you must restart the mail merge operation to upload the template.

Note The ability to upload mail merge templates is available only when you use the Microsoft CRM mail merge functionality in Microsoft Dynamics CRM for Microsoft Office Outlook.

You cannot change the mail merge template when you are offline
When you are offline, the Settings options are not available. Therefore, you cannot change any mail merge templates that you create when you are offline and that you upload to Microsoft Dynamics CRM 4.0. You can use this template while you are offline.

If you must change the mail merge template, use the Microsoft Dynamics CRM 4.0 Web client. Or, go online in the Microsoft Dynamics CRM Client for Outlook to change the template.

The &quot;E-Mail via Mail Merge&quot; functionality does not filter out marketing list members who have no e-mail address
When you use the &quot;E-mail via Mail Merge&quot; functionality, and one of the recipients does not have an e-mail address in Microsoft Dynamics CRM, the mail merge process includes the recipient without the e-mail address in the mail merge operation.

When a marketing list contains members who do not have an e-mail address, the members are still selected to be added to the Word Mail Merge operation. No e-mail activities are created for these members because the users do not have e-mail addresses. However, the users are not listed in the &quot;Excluded or failed&quot; area of the campaign activity.

Resolution

E-mail messages are sent to all the members who have an e-mail address. To send an e-mail, you must enter an e-mail address field for all members in the marketing list. You can create a query in the Advanced Find feature to find the members who do not have an e-mail address. Then, redo the mail merge operation with only those members.

Activities from a mail merge operation are not created when you use Microsoft Office 2003 and use the Word Mail Merge toolbar
Consider the following scenario:
 * You use the Microsoft Dynamics CRM Mail Merge wizard.
 * After you accept the merge recipients in Word, you complete the mail merge by using one of the following Word toolbar options:
 * Merge to New Document
 * Merge to Printer or Merge to E-mail
 * Then, you click Create Microsoft Dynamics CRM activities.

In this scenario, the activities are not created.

Resolution

If you use Microsoft Office Word 2003, you must use the Microsoft Dynamics CRM Mail Merge wizard to complete the merge operation. The Merge to New Document, Merge to Printer, and Merge to E-mail Word 2003 toolbar options do not trigger the events that are used to create the activities in Microsoft Dynamics CRM 4.0.

You receive unexpected results when you change the mail merge type in Word
You create a mail merge operation in Microsoft Dynamics CRM 4.0. You select a mail merge type in the Microsoft Dynamics CRM Mail Merge wizard. For example you select the Letter type. The merge operation opens Word. In Word, you change the mail merge type from Letter to E-mail. The mail merge operation may complete with error messages, or the mail merge operation may complete with incorrect results.

Workaround

To work around this problem, do not change the mail merge type in Word after Word opens. If you must change the mail merge type, restart the mail merge operation from Microsoft Dynamics CRM, and select a different mail merge type.

The SalesRep field in the mail merge quote template lists the GUID value
If you use the mail merge quote template that is included with Microsoft Dynamics CRM 4.0, the SalesRep field lists the GUID value instead of the actual SalesRep full name. For example, the SalesRep field lists {9F21B628-EBA4-DC11-9FD0-000CF1CCD38F} instead of the actual SalesRep full name.

Note The GUID value is the value that is stored in the Microsoft CRM database for the user who owns the quote record.

Resolution

To resolve this issue, edit the default mail merge quote template to remove the owner of the SalesRep field. Then, add the  field. To do this, follow these steps:  Print and save the default mail merge template by using a different name. To do this, follow these steps:  Open a quote in the Microsoft Dynamics CRM Web client, and then click Print Quote for Customer. Click Organizational Template, click Quote For Customer, and then click OK. Click OK to start the mail merge operation. Click Open.

Note If you are using the 2007 Microsoft Office system, you must click Options, click Enable this content, and then click OK. Then, you can use the CRM macros for the mail merge template. On the Addins tab, click CRM. Click OK on the Mail Merge Recipients page of the mail merge wizard.</li> On the File menu, point to Save As, and then click Other Formats.</li> Browse to a folder to which you want to save the template.</li> Type a file name in the File Name box, click Word XML Document(*.xml) in the Save as type list, and then click Save.</li> Close the Mail Merge wizard.</li></ol> </li> Create a new mail merge quote template. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In the Microsoft Dynamics CRM Web client, click Settings, click Templates, click Mail Merge Template, and then click New.</li> Type a name, click Quote in the Associated Entity list, and then click Save.</li> You must modify the data fields to remove one field that will not be used. The maximum number of fields is already used. The maximum number of fields is 62.

For example, you may remove the Salesperson field from the Related Quote Products (Quote Product) entity type. To do this, follow these steps: <ol> Under Select data fields, click Data Fields.</li> In the Entity Type list, click Related Quote Products (Quote Product).</li> Click to clear the SalesPerson check box.</li> In the Entity Type list, click Owner (User).</li> Click Full Name, and then click OK.</li> Click Save.</li> Click Browse, locate the quote template that you saved in step 1, click Open, and then click Attach.</li> Click Save.</li></ol> </li></ol> </li> <li>Edit the mail merge fields on the quote template. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In Word, click Edit Template.</li> <li>Click Open.

Note If you are using the 2007 Office system, you must click Options, click Enable this content, and then click OK. Then, you can use the CRM macros for the mail merge template.</li> <li>On the Mailings tab, click CRM.</li> <li>On the Mail Merge Recipients page of the Mail Merge wizard, click OK.</li> <li>To view the mail merge fields, press ALT+F9.</li> <li>Drag the pointer to select {MERGEFIELD &quot;Owner&quot;}, and then press the Delete key.</li> <li>Click Insert Merge Fields, double-click  in the Fields list, and then click Close.</li> <li>On the File menu, point to Save As, and then click Other Formats.</li> <li>Browse to a folder in which you want to save the template.</li> <li>Type a file name in the File Name box, click Word XML Document(*.xml) in the Save as type list, and then click Save.</li> <li>Close the Mail Merge wizard.</li></ol> </li> <li>Update the mail merge quote template. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open the mail merge template that you saved in step 2.</li> <li>Under File Name, click Remove to remove the existing mail merge template.</li> <li>Click Browse, locate the updated mail merge quote template that you saved in step 3, click Open, and then click Attach.</li> <li>Click Save and Close.</li></ol> </li></ol>

More Information

The mail merge template is created as a Personal Mail Merge template type. If you want to make the template available to the organization, follow these steps:
 * 1) In the Microsoft CRM Web client, click Settings, click Templates, click Mail Merge Template, and then click the template that you created.
 * 2) Click Actions, click Make Available to Organization, click OK, and then click Save and Close.

Line item fields are missing from the default mail merge quote template
When you use the default mail merge quote template in Microsoft Dynamics CRM 4.0, the following fields are missing from the line item calculation:
 * Tax
 * Manual Discount
 * Volume Discount

The line item total extended amount calculation is correct. However, the default template does not list these fields for each line item.

Resolution

To resolve this issue, you must modify the default mail merge quote template. Or, create a new mail merge quote template that includes these fields.

Keywords: kbexpertiseinter kbhowto kbinfo kbmbsmigrate kbexpertisebeginner KB946273

-

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

© Microsoft Corporation. All rights reserved.