Infopath does not resolve some email names to addresses

Article ID: 968479 – Last Review: March 2, 2009 – Revision: 1.0

Infopath does not resolve some email names to addresses

Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom

You have an InfoPath Form Template (XSN file) that contains an e-mail “submit” data connection. Some or all of the form users cannot submit mail to some recipients.

When the e-mail submission fails, InfoPath returns the following error:

InfoPath cannot submit the form.

An error occurred while the form was being submitted.

The form cannot be submitted because some of the e-mail addresses cannot be resolved. If you know the values in the form that specify the e-mail addresses, revise them and try again.

The following addresses did not resolve…

Cause

InfoPath relays the names provided in the field to Outlook for resolution. It has no way to send a selection prompt back to the user, so if the names do not resolve unambiguously, the submission fails. This can happen not only if two contacts have names that match the submitted name, but if a single match has multiple contact options, for example,  two email addresses, or an email address and a phone number that Outlook can call.

 

To confirm that the failure is due to an ambiguous name, have a user who is experiencing the problem do the following test:

 

1.      Open a new Outlook message.

2.      In the To: line, type the name of the user, as provided in the InfoPath form.

3.      If the target name is in the Outlook AutoComplete Cache, it may resolve despite being ambiguous. If you see the target name appear in the pick list, use the arrow keys to select it and press delete to remove it from the cache.

4.      Press Ctrl + K.

If Outlook returns a list of names for you to select from, it cannot resolve the address for InfoPath.

Resolution

If you are using InfoPath 2007 and Active Directory (AD), the best solution is to use the Contact Selector control to select the email recipient.

 

If this is not practical, you can use one of the following workarounds:

 

·         Write code behind InfoPath to perform an Active Directory query to retrieve the user’s information

·         Create a web service that will perform an Active Directory query to retrieve the user’s information and add this as a data connection in your XSN

·         Modify contact information in Exchange so that the contact names used are unique

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.


APPLIES TO
  • Microsoft Office InfoPath 2007
Keywords: 
kbnomt kbrapidpub KB968479

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image