Valid user cannot be resolved issue

  • Thread starter Thread starter paresh
  • Start date Start date
Status
Not open for further replies.
P

paresh

Hi,

I am using below code to resolve the "userName". It works absolutely fine

for 99% users but cannot resolve some of our users. Could anyone please

suggest what could be wrong? I am not sure but it has to do something with

their stored Outlook information?

Set rcp = Application.Session.CreateRecipient(userName)

rcp.Resolve

If NOT rcp.Resolved = True Then

MsgBox "User " & """" & userName & """ could not be resolved."

End If

While researching on this issue, I ran into below scenario that might be the

reason? It happens when I have below type of user name entries. When I try to

resolve "foo, user", it doesn't get resolved but "foo, user(dept1)" gets

resolved successfully.

foo, user

foo, user(dept1)

Please note that both of above users are different. Do you think any

connection with these entries and naming resolution?

Moreover, I tried doing it from Outlook look up but I didn't see any

difference. For example, when I copy "foo user" in To list, and press Cntl+K,

it gives me pop-up for selecting between "foo user" and "foo user(dept1)".

The same pop up appears when I do look up for "foo user(dept1)". Not sure

where is the issue. I might need to check how resolve query works.

Thanks.
 
A user can be resolved only if it has exactly one email address. It doesn't

work if it has no address or more than one address.

Best regards

Michael Bauer

Am Sun, 27 Dec 2009 20:57:01 -0800 schrieb paresh:


> Hi,

> I am using below code to resolve the "userName". It works absolutely fine
> for 99% users but cannot resolve some of our users. Could anyone please
> suggest what could be wrong? I am not sure but it has to do something with
> their stored Outlook information?

> Set rcp = Application.Session.CreateRecipient(userName)
> rcp.Resolve

> If NOT rcp.Resolved = True Then
> MsgBox "User " & """" & userName & """ could not be resolved."
> End If

> While researching on this issue, I ran into below scenario that might be


the
> reason? It happens when I have below type of user name entries. When I try


to
> resolve "foo, user", it doesn't get resolved but "foo, user(dept1)" gets
> resolved successfully.

> foo, user
> foo, user(dept1)

> Please note that both of above users are different. Do you think any
> connection with these entries and naming resolution?

> Moreover, I tried doing it from Outlook look up but I didn't see any
> difference. For example, when I copy "foo user" in To list, and press


Cntl+K,
> it gives me pop-up for selecting between "foo user" and "foo user(dept1)".
> The same pop up appears when I do look up for "foo user(dept1)". Not sure
> where is the issue. I might need to check how resolve query works.

> Thanks.
 
Michael, there is only one unique email address assign to both the users "foo

user" and "foo user(dept1)" and they are "foo user@company.com" and "foo

user(dept1)@company.com" respectively.

Those both users are completely different. The email addresses are like it

because "foo user" joined company first and then with same first and last

name other user joined the company. For second user, we append the

"(department name)" to differentiate with previous user.

I am not clear what could be the problem then. Could you please help me out.

Thanks,

Paresh

"Michael Bauer " wrote:



> A user can be resolved only if it has exactly one email address. It doesn't
> work if it has no address or more than one address.

> > Best regards
> Michael Bauer
>

>

> Am Sun, 27 Dec 2009 20:57:01 -0800 schrieb paresh:
>
> > Hi,
> > I am using below code to resolve the "userName". It works absolutely fine
> > for 99% users but cannot resolve some of our users. Could anyone please
> > suggest what could be wrong? I am not sure but it has to do something with
> > their stored Outlook information?
> > Set rcp = Application.Session.CreateRecipient(userName)
> > rcp.Resolve
> > If NOT rcp.Resolved = True Then
> > MsgBox "User " & """" & userName & """ could not be resolved."
> > End If
> > While researching on this issue, I ran into below scenario that might be

> the
> > reason? It happens when I have below type of user name entries. When I try

> to
> > resolve "foo, user", it doesn't get resolved but "foo, user(dept1)" gets
> > resolved successfully.
> > foo, user
> > foo, user(dept1)
> > Please note that both of above users are different. Do you think any
> > connection with these entries and naming resolution?
> > Moreover, I tried doing it from Outlook look up but I didn't see any
> > difference. For example, when I copy "foo user" in To list, and press

> Cntl+K,
> > it gives me pop-up for selecting between "foo user" and "foo user(dept1)".
> > The same pop up appears when I do look up for "foo user(dept1)". Not sure
> > where is the issue. I might need to check how resolve query works.
> > Thanks.

> .
>
 

> "foo user(dept1)@company.com"


Are you sure that's the email address and not the DisplayName? My Outlook

doesn't accept a '(' character in the address.

Best regards

Michael Bauer

Am Mon, 28 Dec 2009 06:31:01 -0800 schrieb paresh:


> Michael, there is only one unique email address assign to both the users


"foo
> user" and "foo user(dept1)" and they are "foo user@company.com" and "foo
> user(dept1)@company.com" respectively.

> Those both users are completely different. The email addresses are like it
> because "foo user" joined company first and then with same first and last
> name other user joined the company. For second user, we append the
> "(department name)" to differentiate with previous user.

> I am not clear what could be the problem then. Could you please help me


out.

> Thanks,
> Paresh

> "Michael Bauer " wrote:
>
>

>
>> A user can be resolved only if it has exactly one email address. It


doesn't
> > work if it has no address or more than one address.
>

>> > > Best regards
> > Michael Bauer
> >

> >

>
>
>> Am Sun, 27 Dec 2009 20:57:01 -0800 schrieb paresh:
> >
> >> Hi,
> >
>>> I am using below code to resolve the "userName". It works absolutely


fine
> >> for 99% users but cannot resolve some of our users. Could anyone please
> >> suggest what could be wrong? I am not sure but it has to do something


with
> >> their stored Outlook information?
> >
>>> Set rcp = Application.Session.CreateRecipient(userName)
> >> rcp.Resolve
> >
>>> If NOT rcp.Resolved = True Then
> >> MsgBox "User " & """" & userName & """ could not be resolved."
> >> End If
> >
>>> While researching on this issue, I ran into below scenario that might be

> > the
> >> reason? It happens when I have below type of user name entries. When I


try
> > to
> >> resolve "foo, user", it doesn't get resolved but "foo, user(dept1)" gets
> >> resolved successfully.
> >
>>> foo, user
> >> foo, user(dept1)
> >
>>> Please note that both of above users are different. Do you think any
> >> connection with these entries and naming resolution?
> >
>>> Moreover, I tried doing it from Outlook look up but I didn't see any
> >> difference. For example, when I copy "foo user" in To list, and press

> > Cntl+K,
> >> it gives me pop-up for selecting between "foo user" and "foo


user(dept1)".
> >> The same pop up appears when I do look up for "foo user(dept1)". Not


sure
> >> where is the issue. I might need to check how resolve query works.
> >
>>> Thanks.

> > .
> >
 
I have given that example just to illustrate that we have different email

addresses. The exact email addresses would be "foo.user@company.com" and

"foo.user_dept1@company.com".

thanks.

"Michael Bauer " wrote:



>
> > "foo user(dept1)@company.com"


> Are you sure that's the email address and not the DisplayName? My Outlook
> doesn't accept a '(' character in the address.

> > Best regards
> Michael Bauer
>

>

> Am Mon, 28 Dec 2009 06:31:01 -0800 schrieb paresh:
>
> > Michael, there is only one unique email address assign to both the users

> "foo
> > user" and "foo user(dept1)" and they are "foo user@company.com" and "foo
> > user(dept1)@company.com" respectively.
> > Those both users are completely different. The email addresses are like it
> > because "foo user" joined company first and then with same first and last
> > name other user joined the company. For second user, we append the
> > "(department name)" to differentiate with previous user.
> > I am not clear what could be the problem then. Could you please help me

> out.
> > Thanks,
> > Paresh
> > "Michael Bauer " wrote:
> >
> >
> >
> >> A user can be resolved only if it has exactly one email address. It

> doesn't
> >> work if it has no address or more than one address.
> >
> >> > >> Best regards
> >> Michael Bauer
> >>

> >>

> >
> >
> >> Am Sun, 27 Dec 2009 20:57:01 -0800 schrieb paresh:
> >
> >>> Hi,
> >>
> >>> I am using below code to resolve the "userName". It works absolutely

> fine
> >>> for 99% users but cannot resolve some of our users. Could anyone please
> >>> suggest what could be wrong? I am not sure but it has to do something

> with
> >>> their stored Outlook information?
> >>
> >>> Set rcp = Application.Session.CreateRecipient(userName)
> >>> rcp.Resolve
> >>
> >>> If NOT rcp.Resolved = True Then
> >>> MsgBox "User " & """" & userName & """ could not be resolved."
> >>> End If
> >>
> >>> While researching on this issue, I ran into below scenario that might be
> >> the
> >>> reason? It happens when I have below type of user name entries. When I

> try
> >> to
> >>> resolve "foo, user", it doesn't get resolved but "foo, user(dept1)" gets
> >>> resolved successfully.
> >>
> >>> foo, user
> >>> foo, user(dept1)
> >>
> >>> Please note that both of above users are different. Do you think any
> >>> connection with these entries and naming resolution?
> >>
> >>> Moreover, I tried doing it from Outlook look up but I didn't see any
> >>> difference. For example, when I copy "foo user" in To list, and press
> >> Cntl+K,
> >>> it gives me pop-up for selecting between "foo user" and "foo

> user(dept1)".
> >>> The same pop up appears when I do look up for "foo user(dept1)". Not

> sure
> >>> where is the issue. I might need to check how resolve query works.
> >>
> >>> Thanks.
> >> .
> >>

> .
>
 
Resolution with names that aren't wholly unique can be a problem as the

resolution is usually done with an AddressBook restriction, and that uses a

StartsWith operator. So 2 addresses that start with "foo.user" will present

a resolution problem.

"paresh" <paresh> wrote in message

news:37C1CD70-325D-4E2B-BB0C-D111DC1E4566@microsoft.com...
> I have given that example just to illustrate that we have different email
> addresses. The exact email addresses would be "foo.user@company.com" and
> "foo.user_dept1@company.com".

> thanks.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Diane Poremsky Could not complete the operation. One or more parameter values are not valid. Using Outlook 0
S The incoming task is not valid ((when users are accepting a Task) Using Outlook 5
A webinar.ics is not a valid Internet Calendar file Using Outlook 1
M Is there a reference for the valid XML tags and their options? Using Outlook 3
K message.vcs is not a valid Internet calendar file !! Exchange Server Administration 5
M Can't send email to certain valid email addresses, message says Using Outlook 1
M Restrict throwing 'Condition is not valid' error Outlook VBA and Custom Forms 5
A Generating valid MAPI URLs for Outlook 2003 Outlook VBA and Custom Forms 2
C IMapiSession exception: Specified cast is not valid Outlook VBA and Custom Forms 1
J Specified cast is not valid Outlook VBA and Custom Forms 1
I one or more parameters not valid 2007 sending email BCM (Business Contact Manager) 2
L Meeting invitation not sent to a user Exchange Server Administration 2
D Lifelong Windows user - new to Mac - Help!!! Using Outlook 3
Witzker Outlook 2019 Macro GoTo user defined search folder Outlook VBA and Custom Forms 6
W OL giving basic auth when logged in to Win as specific user Using Outlook 0
Witzker Outlook 2019 How to get a Photo in a User Defined Contact form Outlook VBA and Custom Forms 2
Witzker Outlook 2019 Macro to send an Email Template from User Defined Contact Form Outlook VBA and Custom Forms 0
Witzker Outlook 2019 Edit contact from email does not open the user defined contactform Using Outlook 3
Witzker Set Cursor & Focus from any field to the body of a user Contact form in OL 2019 Outlook VBA and Custom Forms 1
Witzker Place cursor at opening, a user defined OL contact form Outlook VBA and Custom Forms 2
ill13 Prepend the user's computer name to the subject. Outlook VBA and Custom Forms 1
J How to create a drop down user defined field that will appear on an inbox view Outlook VBA and Custom Forms 8
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
Z Import Tasks from Access Using VBA including User Defined Fields Outlook VBA and Custom Forms 0
icacream Outlook 2016 “Enter your user name and password for the following server.” Using Outlook 5
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
A How to stop user form from disapearing once mail window is closed? Outlook VBA and Custom Forms 0
H Information from user defined field into Excel Outlook VBA and Custom Forms 7
D Outlook 2010 Outlook in Windows 10 keeps asking for user name and password repeatedly Using Outlook 14
E Asking user to select multiple options in a list in an email Outlook VBA and Custom Forms 0
icacream Enter your user name and password for the following server. Using Outlook 4
B User defined field for messages with 'me' in the [To], [Cc] line Using Outlook 0
S User Defined Fields adding new value (2) Using Outlook 0
R Creating a user defined function Outlook VBA and Custom Forms 3
M Compile error: User-defined type not defined Outlook VBA and Custom Forms 0
M How to export Voting Results with user names and their responses Outlook VBA and Custom Forms 13
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
C Outlook 2016 Conditional Format for User Defined Field Using Outlook 1
G <mailto:user@domain.com<mailto:user@domain.com<mailto:user@domain.com>>> Using Outlook 5
F MAPI, User Defined Fields and perspective after 20 years Outlook VBA and Custom Forms 0
B Outlook Business Contact Manager with SQL to Excel, User Defined Fields in BCM don't sync in SQL. Can I use VBA code to copy 1 field to another? BCM (Business Contact Manager) 0
A Created a new user account and the local account cannot see email Using Outlook 3
N How to set automatically the default or user defined Quickstyle Templates by Answer in Outlook Using Outlook 1
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
Daniel Schunk User-defined form arrives empty at the recipient Using Outlook 3
C Changed By field not displaying individual user's name in O365 Shared Mailbox Using Outlook 9
M other user's mailbox won't open, forms disappeared Using Outlook 42
S Custom user fields in received messages Outlook VBA and Custom Forms 1
T Have Outlook 2016 suggest email address auto complete entries directly from the user's contacts list Using Outlook 10
T Have Outlook 2016 suggest email address auto complete entries directly from the user's contacts list Using Outlook 0

Similar threads

Back
Top