Restrict throwing 'Condition is not valid' error

Status
Not open for further replies.
M

Mark McGinty

Greets,

Out of the thousands of installed copies of our AddIn, exactly one throws an

error when we call Restrict aginsts the items collection of the default

contacts folder. The filter expression is static, and is as folllows:

[MessageClass] <> 'IPM.DistList'

Since it works as expected on every other machine, I can't imagine how this

might be a problem in my code, because I can't imagine how this condition

would be invalid in any folder.

The system is Outlook 2003, connected to Exchange, using CEM. I asked the

user to perform an advanced search using the same criteria on this machine,

he said it returned the items he expected.

The user logged-into Exchange from another machine, and our AddIn ran

against his contacts without errors. The user said he forced the .OST to be

regenerated on the problem machine, he said it didn't change the problem.

Anyone ever seen this, or have an idea what might cause it? I'm thinking

Outlook might need to be reinstalled, but I don't want to suggest that

frivolously.

TIA,

Mark
 
Is there a possibility that this machine is set to use Outlook in a language

other than English?

Sue Mosher

"Mark McGinty" wrote:


> Greets,

> Out of the thousands of installed copies of our AddIn, exactly one throws an
> error when we call Restrict aginsts the items collection of the default
> contacts folder. The filter expression is static, and is as folllows:

> [MessageClass] <> 'IPM.DistList'

> Since it works as expected on every other machine, I can't imagine how this
> might be a problem in my code, because I can't imagine how this condition
> would be invalid in any folder.

> The system is Outlook 2003, connected to Exchange, using CEM. I asked the
> user to perform an advanced search using the same criteria on this machine,
> he said it returned the items he expected.

> The user logged-into Exchange from another machine, and our AddIn ran
> against his contacts without errors. The user said he forced the .OST to be
> regenerated on the problem machine, he said it didn't change the problem.

> Anyone ever seen this, or have an idea what might cause it? I'm thinking
> Outlook might need to be reinstalled, but I don't want to suggest that
> frivolously.

> TIA,
> Mark

> .
>
 
What is the exact error that is being thrown? (We apply the exact same

filter in our products and have never run across this as an issue so curious

as to what the error is that you're running into)

For what it's worth given your description being that it works accessing

same account from a different machine which indicates that the folder

contents are valid - would try the following:

#1) do a detect and repair on problem machine (but really don't see

how this would affect filtering on a single message class)

#2) have the user connect to the account in "non-cached" mode to see

if the problem persists

Message classes are not language dependant so that wouldn't be the cause.

Karl

________________

"Mark McGinty" <mmcginty@spamfromyou.com> wrote in message

news:eSHH2J2UKHA.5368@TK2MSFTNGP02.phx.gbl...
> Greets,

> Out of the thousands of installed copies of our AddIn, exactly one throws
> an error when we call Restrict aginsts the items collection of the default
> contacts folder. The filter expression is static, and is as folllows:

> [MessageClass] <> 'IPM.DistList'

> Since it works as expected on every other machine, I can't imagine how
> this might be a problem in my code, because I can't imagine how this
> condition would be invalid in any folder.

> The system is Outlook 2003, connected to Exchange, using CEM. I asked the
> user to perform an advanced search using the same criteria on this
> machine, he said it returned the items he expected.

> The user logged-into Exchange from another machine, and our AddIn ran
> against his contacts without errors. The user said he forced the .OST to
> be regenerated on the problem machine, he said it didn't change the
> problem.

> Anyone ever seen this, or have an idea what might cause it? I'm thinking
> Outlook might need to be reinstalled, but I don't want to suggest that
> frivolously.

> TIA,
> Mark
>
 
"Sue Mosher [MVP]" <suemvp@gmail.com> wrote in message

news:123BB3DF-4855-492D-AD8C-5AB79149FED0@microsoft.com...
> Is there a possibility that this machine is set to use Outlook in a
> language
> other than English?


Hi Sue,

Did I ever send you a WTG note about your book? (You may recall helping me

a couple of years ago, and I bought a copy of your book to keep a clear

conscience.) If not, nicely done, concise yet sufficiently detailed; a

useful reference without a doubt! (My intentions are always golden when I

decide to send such notes; follow-through could use some work.) :)

Anyways, I can't say no possibility but I think it unlikely, the PC is in

the US, in email replies from this box, the header that describes the

original email are generated in English, date format is US... make that

highly unlikely.

But for argument's sake, what if it is? OOM property names aren't

language-specific, right?

Thanks,

Mark


> Sue Mosher
> > >

> "Mark McGinty" wrote:
>
> > Greets,
>

>> Out of the thousands of installed copies of our AddIn, exactly one throws
> > an
> > error when we call Restrict aginsts the items collection of the default
> > contacts folder. The filter expression is static, and is as folllows:
>

>> [MessageClass] <> 'IPM.DistList'
>

>> Since it works as expected on every other machine, I can't imagine how
> > this
> > might be a problem in my code, because I can't imagine how this condition
> > would be invalid in any folder.
>

>> The system is Outlook 2003, connected to Exchange, using CEM. I asked
> > the
> > user to perform an advanced search using the same criteria on this
> > machine,
> > he said it returned the items he expected.
>

>> The user logged-into Exchange from another machine, and our AddIn ran
> > against his contacts without errors. The user said he forced the .OST to
> > be
> > regenerated on the problem machine, he said it didn't change the problem.
>

>> Anyone ever seen this, or have an idea what might cause it? I'm thinking
> > Outlook might need to be reinstalled, but I don't want to suggest that
> > frivolously.
>

>
>> TIA,
> > Mark
>

>
>> .
> >
 
"Karl Timmermans" <karl@claxton.com> wrote in message

news:uUfuc24UKHA.4360@TK2MSFTNGP04.phx.gbl...
> What is the exact error that is being thrown? (We apply the exact same
> filter in our products and have never run across this as an issue so
> curious as to what the error is that you're running into)


The exact error is:

Description: Condition is not valid.

Number: -451805175


> For what it's worth given your description being that it works accessing
> same account from a different machine which indicates that the folder
> contents are valid - would try the following:
> #1) do a detect and repair on problem machine (but really don't see
> how this would affect filtering on a single message class)


He did that on his own, no affect.


> #2) have the user connect to the account in "non-cached" mode to see
> if the problem persists


Hmm... I've already scheduled him some more time on the proverbial

treadmill, I asked him to create another user login, connect Outlook to

Exchange, etc to see if the problem is machine wide or user profile

specific. I'll add that to his exercises... but I hope that's not it, we

need CEM.

Mark


> Message classes are not language dependant so that wouldn't be the cause.

> Karl
> ________________
>

>

>

>

> "Mark McGinty" <mmcginty@spamfromyou.com> wrote in message
> news:eSHH2J2UKHA.5368@TK2MSFTNGP02.phx.gbl...
> > Greets,
>

>> Out of the thousands of installed copies of our AddIn, exactly one throws
> > an error when we call Restrict aginsts the items collection of the
> > default contacts folder. The filter expression is static, and is as
> > folllows:
>

>> [MessageClass] <> 'IPM.DistList'
>

>> Since it works as expected on every other machine, I can't imagine how
> > this might be a problem in my code, because I can't imagine how this
> > condition would be invalid in any folder.
>

>> The system is Outlook 2003, connected to Exchange, using CEM. I asked
> > the user to perform an advanced search using the same criteria on this
> > machine, he said it returned the items he expected.
>

>> The user logged-into Exchange from another machine, and our AddIn ran
> > against his contacts without errors. The user said he forced the .OST to
> > be regenerated on the problem machine, he said it didn't change the
> > problem.
>

>> Anyone ever seen this, or have an idea what might cause it? I'm thinking
> > Outlook might need to be reinstalled, but I don't want to suggest that
> > frivolously.
>

>
>> TIA,
> > Mark
> >


>
 
Given that the most salient item in this problem is that it occurs only on

one machine - logic dictates that the issue is configuration related so

having just stated the obvious.......if this scenario was reported to us,

the key things we'd be asking/looking at/for would be:

1) Did this ever work on this machine? If it did, what was installed between

the time it worked and the time it stopped?

2) What add-ins exist on this machine that don't exist on others - active or

not? Simply disabling an addin doesn't preclude potential issues that could

result simply from it (and any of its related components) being installed.

3) Even for same add-ins - are these all at the same version level?

4) What Outlook related 3rd party software is installed on this machine

versus the others (if any)? For that matter, what 3rd party stuff has been

installed previously that may have been uninstalled? (i.e. for the

possibility that something has replaced the mapi dlls with a customized

version)

5) Further to item#4 - are the mapi dlls the same version on all machines?

Some "shot in the dark" - background questions:

6) What are you using to filter - OOM? CDO? Redemption? That's a strange

error number that doesn't seem to show up anywhere.

7) Are there any PDLs in this account? If yes, can they be opened normally

via Outlook on the problem machine. If no, if one was created - does the

issue still exist?

Karl

________________

"Mark McGinty" <mmcginty@spamfromyou.com> wrote in message

news:e5ETwJAVKHA.1372@TK2MSFTNGP02.phx.gbl...

> "Karl Timmermans" <karl@claxton.com> wrote in message
> news:uUfuc24UKHA.4360@TK2MSFTNGP04.phx.gbl...
> > What is the exact error that is being thrown? (We apply the exact same
> > filter in our products and have never run across this as an issue so
> > curious as to what the error is that you're running into)


> The exact error is:

> Description: Condition is not valid.
> Number: -451805175
>
> > For what it's worth given your description being that it works accessing
> > same account from a different machine which indicates that the folder
> > contents are valid - would try the following:
> > #1) do a detect and repair on problem machine (but really don't see
> > how this would affect filtering on a single message class)


> He did that on his own, no affect.
>
> > #2) have the user connect to the account in "non-cached" mode to see
> > if the problem persists


> Hmm... I've already scheduled him some more time on the proverbial
> treadmill, I asked him to create another user login, connect Outlook to
> Exchange, etc to see if the problem is machine wide or user profile
> specific. I'll add that to his exercises... but I hope that's not it, we
> need CEM.

> Mark
>
> > Message classes are not language dependant so that wouldn't be the cause.
>

>> Karl
> > ________________
> >

> >

> >

> >

>

>
>
>> "Mark McGinty" <mmcginty@spamfromyou.com> wrote in message
> > news:eSHH2J2UKHA.5368@TK2MSFTNGP02.phx.gbl...
> >> Greets,
> >
>>> Out of the thousands of installed copies of our AddIn, exactly one
> >> throws an error when we call Restrict aginsts the items collection of
> >> the default contacts folder. The filter expression is static, and is as
> >> folllows:
> >
>>> [MessageClass] <> 'IPM.DistList'
> >
>>> Since it works as expected on every other machine, I can't imagine how
> >> this might be a problem in my code, because I can't imagine how this
> >> condition would be invalid in any folder.
> >
>>> The system is Outlook 2003, connected to Exchange, using CEM. I asked
> >> the user to perform an advanced search using the same criteria on this
> >> machine, he said it returned the items he expected.
> >
>>> The user logged-into Exchange from another machine, and our AddIn ran
> >> against his contacts without errors. The user said he forced the .OST
> >> to be regenerated on the problem machine, he said it didn't change the
> >> problem.
> >
>>> Anyone ever seen this, or have an idea what might cause it? I'm
> >> thinking Outlook might need to be reinstalled, but I don't want to
> >> suggest that frivolously.
> >
>>
>>> TIA,
> >> Mark
> >>

>

>>


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R How to restrict GWSMO sync to Outlook Send/Receive cycles Using Outlook 0
B oContacts.Items.Restrict Misses Some Contacts Outlook VBA and Custom Forms 3
K Disabling import/export button to restrict PST creation Using Outlook 3
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
L Restrict accepted appts to specific calendar Using Outlook 2
oliv- .RESTRICT returning birthdays regardless of the filtering date Outlook VBA and Custom Forms 8
M Using .Restrict with a UserProperty in an Exchange folder Outlook VBA and Custom Forms 4
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
JorgeDario How to restrict the creation of new folders? Outlook VBA and Custom Forms 2
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
S Restrict method question on email. What am I doing wrong? Outlook VBA and Custom Forms 2
M Restrict Appointments by EntryID not working Outlook VBA and Custom Forms 1
E Word macro running from OL VBA throwing error on Word SaveAs?? Outlook VBA and Custom Forms 8
G Automatically delete email when a condition is met Outlook VBA and Custom Forms 1
D VBA - unable to set rule condition 'on this computer only' Outlook VBA and Custom Forms 5
CWM550 This rule has a condition that the server cannot process? Using Outlook 1
S Send email from excel based on a condition (outlook 2007) Outlook VBA and Custom Forms 1
D Outlook Rules - How to use a variable in the subject condition Outlook VBA and Custom Forms 9
A Setting RULES with more than one condition in MS OUTLOOK Using Outlook 6
W Filter condition "contains"/"doesn't contain" doesn't always work Using Outlook 10
S the folder condition is necessary in Outloook VBS Outlook VBA and Custom Forms 8
M Auto-color all Calendar items based on condition: Private Using Outlook 6

Similar threads

Back
Top