Microsoft KB Archive/193643: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 50: Line 50:
<div class="errormessage">
<div class="errormessage">


80040700 &quot;MAPI_E_AMBIGUOUS_RECIP&quot;
80040700 "MAPI_E_AMBIGUOUS_RECIP"


</div>
</div>
Line 66: Line 66:
== WORKAROUND ==
== WORKAROUND ==


With Exchange Server version 5.5 SP3 or earlier, you can specify a Mailbox Display Name or Mailbox Alias that is unique but is a substring of another Mailbox Display Name or Mailbox Alias by using &quot;=&quot; before the string.<br />
With Exchange Server version 5.5 SP3 or earlier, you can specify a Mailbox Display Name or Mailbox Alias that is unique but is a substring of another Mailbox Display Name or Mailbox Alias by using "=" before the string.<br />
<br />
<br />
Alternately, you can specify the Distinguished Name (Obj-Dist-Name) of the mailbox.<br />
Alternately, you can specify the Distinguished Name (Obj-Dist-Name) of the mailbox.<br />
<br />
<br />
To specify a Mailbox Alias that is Admin when there are also valid mailbox aliases of Admin1 and Admin2 you need to specify the string value as &quot;=Admin&quot; in order for this call to work. For example:
To specify a Mailbox Alias that is Admin when there are also valid mailbox aliases of Admin1 and Admin2 you need to specify the string value as "=Admin" in order for this call to work. For example:
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
       rgval[0].Value.lpszA =  &quot;=Admin&quot;;
       rgval[0].Value.lpszA =  "=Admin";
                 </pre>
                 </pre>
Similarly, to specify a Mailbox Display Name for &quot;Administrator&quot; when there is also a valid Mailbox Display Names of &quot;Administrator One&quot; you would use the &quot;=&quot; as demonstrated here:
Similarly, to specify a Mailbox Display Name for "Administrator" when there is also a valid Mailbox Display Names of "Administrator One" you would use the "=" as demonstrated here:
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
       rgval[0].Value.lpszA =  &quot;=Administrator&quot;;
       rgval[0].Value.lpszA =  "=Administrator";
                 </pre>
                 </pre>
An example of using the Distinguished Name follows:
An example of using the Distinguished Name follows:
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
<pre class="codesample">      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
       rgval[0].Value.lpszA =  &quot;/o=MyOrg/ou=MySite/cn=Recipients/cn=Admin&quot;;
       rgval[0].Value.lpszA =  "/o=MyOrg/ou=MySite/cn=Recipients/cn=Admin";
                 </pre>
                 </pre>



Latest revision as of 12:43, 21 July 2020

Knowledge Base


Article ID: 193643

Article Last Modified on 8/25/2005



APPLIES TO

  • Microsoft Messaging Application Programming Interface
  • Microsoft Exchange Server 4.0 Standard Edition
  • Microsoft Exchange Server 5.0 Standard Edition
  • Microsoft Exchange Server 5.5 Standard Edition



This article was previously published under Q193643

SYMPTOMS

When you make a profile programmatically, the call to IMsgServiceAdmin:ConfigureMsgService() may return the following MAPI error message:

80040700 "MAPI_E_AMBIGUOUS_RECIP"

CAUSE

The values passed to the ConfigureMsgService for the Mailbox Alias or Mailbox Display Name were ambiguous.

WORKAROUND

With Exchange Server version 5.5 SP3 or earlier, you can specify a Mailbox Display Name or Mailbox Alias that is unique but is a substring of another Mailbox Display Name or Mailbox Alias by using "=" before the string.

Alternately, you can specify the Distinguished Name (Obj-Dist-Name) of the mailbox.

To specify a Mailbox Alias that is Admin when there are also valid mailbox aliases of Admin1 and Admin2 you need to specify the string value as "=Admin" in order for this call to work. For example:

      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
      rgval[0].Value.lpszA =  "=Admin";
                

Similarly, to specify a Mailbox Display Name for "Administrator" when there is also a valid Mailbox Display Names of "Administrator One" you would use the "=" as demonstrated here:

      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
      rgval[0].Value.lpszA =  "=Administrator";
                

An example of using the Distinguished Name follows:

      rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;
      rgval[0].Value.lpszA =  "/o=MyOrg/ou=MySite/cn=Recipients/cn=Admin";
                

MORE INFORMATION

For sample code demonstrating how to make a profile programmatically, please see the following article in the Microsoft Knowledge Base:

170225 HOWTO: Modifying Settings of MS Exchange Transport Provider



Additional query words: kbMsg KBMAPI100 kbmapi

Keywords: kbprb kbcode KB193643