View Single Post
  #1  
Old July 30th 07, 08:46 PM posted to microsoft.public.outlook.program_vba,microsoft.public.outlook.general
[email protected]
external usenet poster
 
Posts: 1
Default Rules In Error: The Operation Failed.

Hi 2 All!

I've faced with very strange problem:

I have rule fires after arrival of the letter and execute VBA script
("run a script" option) located in the ThisOutlookSession Module.

It looks like:
------
Sub FailTest(Item As MailItem)
'Log ("FailTest")
End Sub
------

Yes, it does nothing In the original there was a useful logic, but
I've simplified code to localize a place of raising of exception.

So, in general this code works fine. BUT sometimes after arrival of
the message it spontaneously fails with message: "Rules In Error",
"The Operation Failed". And then my rule turns off.
It occurs on the average 3-5 times day.
I can't determine what exactly causes error

I suppose that exception is raised in the Rules Manager (or Wizard)
while it tries to call my VBA script & pass there arrived mail as
parameter.

I tried to find solution of the problem or work around, but I've found
nothing

Anyone have any ideas on how to solve this problem?

System:
Outlook 2003, Win XP SP2. + All Updates for Office & Windows.
Settings:
Junk e-mail options: high; Cached Exchange Mode: On

Many Thanks!

Ads