Microsoft KB Archive/290784

= Error message when you publish a large custom Outlook form that contains many controls or user-defined fields: &quot;Unable to successfully publish the form due to a MAPI error&quot; =

Article ID: 290784

Article Last Modified on 6/19/2006

-

APPLIES TO

 Microsoft Outlook 2002 Standard Edition Microsoft Outlook 2000 Standard Edition, when used with:  Microsoft Windows Millennium Edition

 Microsoft Windows 98 Second Edition

 Microsoft Windows 98 Standard Edition

 Microsoft Windows 95</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q290784

<div class="symptoms_section">

SYMPTOMS
You create a large custom Microsoft Outlook form that contains many controls or user-defined fields. When you try to publish the form, you receive an error message that resembles the following:

Unable to successfully publish the form due to a MAPI error. The key 'DisplayName' is either missing or has an incorrect value...

Note The error message will also reference a TMP file that is located in the Windows folder that stores temporary files.

<div class="cause_section">

CAUSE
This is a limitation of publishing forms on a computer that is running Microsoft Windows Millennium Edition (Windows Me), Windows 98, or Windows 95. This problem typically occurs when the form contains more than 300 controls or user-defined fields.

<div class="workaround_section">

WORKAROUND
To work around this problem, use one of the following methods:
 * When you publish the form, use a computer that is running Microsoft Windows Server 2003, Windows XP, Windows 2000, or Windows NT.
 * Redesign the forms solution so that the solution uses multiple forms instead of one large form.
 * Consider using a database management program such as Microsoft Access to store large amounts of data.
 * As a last resort, reduce the number of fields on the form. You can do this by using one Outlook field to store information that you would typically store in more than one field. You would then use an Item_Open event and Microsoft Visual Basic Scripting Edition (VBScript) to read the single field and parse the data. You could also use an Item_Write event to concatenate the data and save it back to the single field.

<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">

MORE INFORMATION
Computers that are running Windows Millennium Edition, Windows 98, or Windows 95 will not have a problem using the large form that you have published on a computer that is running Windows Server 2003, Windows XP, Windows 2000, or Windows NT. The problem only occurs during the publishing process. The temporary file that is created is in the same format as a standard Windows .ini file. However, the size of the temporary file exceeds 64 kilobytes (KB). Windows Millennium Edition, Windows 98, or Windows 95 only support .ini files that are smaller than 64 KB.

<div class="references_section">