Handling errors in Outlook Rule -


I have an approach rule that triggers a script when it's triggered. It works 99% of the time, but sometimes the "this operation fails" message appears and then the rule automatically turns out and is shown in red color.

I'm not sure whether this is due to any problem VBA code or something else, but any advice would be appreciated. Please tell me that this is a wrong place to add this question, but I can not find any reason that can be understood elsewhere.

If we can not find any solution, this rule is again enabled, or to send notification emails when this error occurs - because some process is running on this "stand-alone" PC, And the whole time is not monitored.

C: \ Users \ tenba1 \ Document \ QlikView \ Account Recons \ Queue \ Recon_Acct_ "& Amp; DT & amp; ".txt" Filepath2 = "C: \ Users \ TB1 \ Documents \ QlikView \ Account Records \ Queued \ Recon_SenderEmail_" & amp; DT & amp; amp; ".txt" Filepath3 = "C: \ User \ TB 1 \ Documents \ QlikView \ Account Records \ Queued \ Recon_SenderName_" & amp; DT & amp; amp; ".txt" Const ForWriting = 2 strAccNumber = Trim (middle (itm.Subject, InStrRev (itm.Subject, ""), lane (itm.Subject) - InStr (1, itm.Subject, ""))) strSender = Itm.Sender.GetExchangeUser () PrimarySmtpAddress strSenderName = itm.Sender 'update account number file:. FSO Slim Object FSO Set = CreateObject ("Scripting.FileSystemObject") Object set as dim oFile oFile = fso.CreateTextFile (Filepath1) as oFile .Visitline "SET vAcct = '" & amp; StrAccNumber & amp; Update the sender's email address file: ',' oFile.Close set FSO = nothing set oFile = nothing '': FSO set = CreateObject ("Scripting.FileSystemObject") set oFile = fso.CreateTextFile (Filepath2) oFile WriteLine strSender oFile.Close set FSO = nothing is set oFile = nothing 'Update the name of the sender file: FSO set = CreateObject ("Scripting.FileSystemObject") set oFile = fso.CreateTextFile (Filepath3) oFile.WriteLine StrSenderName oFile.Close set FSO = nothing set oFile = nothing End Sub

Rules extremely incredible Are reliable.

NewMailEx or Item_Add



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -