Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Rules In Error: The Operation Failed. (http://www.outlookbanter.com/outlook-vba/83292-rules-error-operation-failed.html)

willy December 17th 08 08:03 AM

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 have an error handler but it doesn't log error report)

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 2007, Win XP SP3. + All Updates for Office & Windows.
The same behaviour was on Outlook 2003, Win XP SP2
Settings:
Junk e-mail options: high; Cached Exchange Mode: On

Many Thanks!

James Cox January 23rd 09 07:13 PM

Rules In Error: The Operation Failed.
 
About all I can say is that I feel your pain - I'm seeing the same thing -
albeit less often - with Outlook 2007 and Vista.

Please post back here if you ever do find out anything!

James

"Willy" wrote:

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 have an error handler but it doesn't log error report)

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 2007, Win XP SP3. + All Updates for Office & Windows.
The same behaviour was on Outlook 2003, Win XP SP2
Settings:
Junk e-mail options: high; Cached Exchange Mode: On

Many Thanks!



All times are GMT +1. The time now is 08:52 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-2006 OutlookBanter.com