Hello,
We have a process that reads an email from Outlook and saves a hardcopy of the email to the central drive. This has normally worked fine in production, but occasionally the process will fail to save the email due to the following error:
System.Runtime.InteropServices.COMException (0x80020009): Could not open the item. Try again.
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at Email___Additional.Save_Email(String sPath, Decimal nFormat, DateTime ReceivedTime, String& sFileName, Boolean& Success, String& Message)
In the past we have simply rebooted the machine to see if the problem fixes itself. Sometimes it seems to work again, other times the issue persists.
The issue comes from a Code Stage that was written to save emails, but as it works in dev and test, as well as working most of the time in production, we don't think there's an issue with it.
Has anyone seen this exception and can provide any advice?
Thanks,
Chris