Readsoft User's Forum
Register Latest Topics
 
 
 


Reply
  Author   Comment  
comparex

New Member
Registered:
Posts: 2
Reply with quote  #1 
Hello,

I`am experiencing unpleasant behavior of Invoices 5-6.

We are using our own plugin which hooks to Interpretes InvoiceInterpreted event.

When an error occurs in our plugin because of valid reasons and this error is permanent (it occurs every time the invoice is processed)  I signal to Invoices using return value -1 as described in documentation. 

evtOK 

Normal return.

evtOKAbort 

No effect. Treated the same evtOK.

evtCancel 

Causes an error message and job termination.

evtError 

Causes an error message and job termination.


Unfortunately invoices not only stops processing of the faulty invoice but halts the entire job. It may be restarted again later when the interpret runs as a service, but when it comes to the faulty invoice it stops again, effectively creating a plug. The only remedy I know of is to reverse the order in which the invoices are processed in the job. But that is merely a temporary workaround because there might be another faulty invoice on the other side of the queue as well.

The same effect occurs when I let the exception unhandled and it bubbles up into the Invoices.

I can`t use any other return value because they all means Normal return. That would mean that the invoice would not be processed by my plugin but invoices would let it into the verification and beyond.

Is there any way how to force invoices to skip faulty invoice and continue processing of other invoices?

I am desperate because slightest problem requires manual action from staff.


Thank you
Jan Joska





0
Crescent City Rogue

New Member
Registered:
Posts: 5
Reply with quote  #2 

Have you tried setting ContinueJobOnError to 1 in the EILOCAL? 

I haven't worked with this setting before, but it seems to be what you are looking for: "When this setting is turned on, Interpret ignores any errors that occur when processing an invoice and proceeds to interpret the next one. Alternatively, when turned off (default), Interpret stops when an error occurs."

0
comparex

New Member
Registered:
Posts: 2
Reply with quote  #3 
Hello,

thank you for your answer.

The setttings key you mention is indeed set to 0. I will diagnose the influence and perform tests. I will post results here.

best regards
Jan Joska

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.



Follow @readsoftuser