email rules with scripts break in version 2202(build 14931.20604)

leolegend 1 Reputation point
2022-07-28T20:43:49.033+00:00

I have some email rules that run vba scripts when email arrives. they all throw errors about "an unexpected error has occurred" since i upgraded from patch Version 2108 (build 14326.21018) to the latest patch version 2202(build 14931.20604).

about my setups:

  • im running Microsoft 365 apps for enterprise on a machine running Windows 10 Enterprise 21H2.
  • all the rules move the emails to different outlook folders based on subjects/senders, this part is still working whether the script is working or not.
  • in addition, some of the rules dont run scripts and they still work fine. some of the rules run scripts and they are broken.
  • those rules only break when email arrives automatically and work fine if i run them manually on the existing email items in the inbox.
  • the vba scripts are very simple and save email attachments to the network drive. given they have been running fine for 5 years and work when running manually, i assume i have done Outlook/registry security/macro settings correctly, e.g. allow all macros in outlook, turn on EnableUnsafeClientMailRules in registry, etc.

things I have tried but didnt fix the issue:

  • unable/disable Cached Exchange Mode
  • re-create OST/NST/SRS files
  • export/import all the rules
  • re-create all the rules
  • re-install office and upgrade to latest v2202.

things I have tried that did fix the issue:

  • re-install office and stay at an earlier version. whenever i upgrade, they break again.
  • restore my machine to the state on early July. whenever I upgrade, they break again.

anyone have any thoughts about this issue? I have searched online for a while and exhausted all the options.

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,183 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.