A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Valid user cannot be resolved issue



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 28th 09, 04:57 AM posted to microsoft.public.outlook.program_vba
paresh
external usenet poster
 
Posts: 66
Default Valid user cannot be resolved issue

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.
Ads
  #2  
Old December 28th 09, 11:27 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Valid user cannot be resolved issue



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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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.

  #3  
Old December 28th 09, 02:31 PM posted to microsoft.public.outlook.program_vba
paresh
external usenet poster
 
Posts: 66
Default Valid user cannot be resolved issue

Michael, there is only one unique email address assign to both the users "foo
user" and "foo user(dept1)" and they are "foo " and "foo
" 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 [MVP - Outlook]" 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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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.

.

  #4  
Old December 29th 09, 07:32 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Valid user cannot be resolved issue




"foo "


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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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 " and "foo
" 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 [MVP - Outlook]" 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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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.

.

  #5  
Old December 29th 09, 08:50 AM posted to microsoft.public.outlook.program_vba
paresh
external usenet poster
 
Posts: 66
Default Valid user cannot be resolved issue

I have given that example just to illustrate that we have different email
addresses. The exact email addresses would be " and
".

thanks.

"Michael Bauer [MVP - Outlook]" wrote:




"foo "


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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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 " and "foo
" 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 [MVP - Outlook]" 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 - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


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

.

  #6  
Old December 29th 09, 02:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Valid user cannot be resolved issue

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"paresh" wrote in message
...
I have given that example just to illustrate that we have different email
addresses. The exact email addresses would be " and
".

thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User does not exist - calendar issue Macinslaw Outlook - Calandaring 11 December 14th 07 01:25 PM
Name Cannot Be Resolved marinthal Outlook - Installation 0 February 21st 07 06:55 PM
Delegates user issue IceKettle Add-ins for Outlook 0 February 13th 07 01:35 AM
Need help: The name could not be resolved... Mike Cello Outlook - General Queries 1 October 14th 06 03:56 PM


All times are GMT +1. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.