Question Michael Lundberg · Aug 28, 2017

Catch "Skipping previously file " event

Hi

Is there anyway to catch info/warnings into an Ens.Alert when the inbound adapter is skipping  previously file (of any reason)?
Or any other way to pay attention to it.

In our log it usual have Warning or Info level and it stops there. We really want to create some kind of an alert when it happends.

All suggestions welcome

Sincerly,

Michael

Comments

Eduard Lebedyuk · Aug 28, 2017

You'll need to subclass EnsLib.File.InboundAdapter and modify this line in OnTask method to do what you need:

 $$$LOGINFO("Skipping previously processed file '"_tOneFilename_"'")

Alternatively you can monitor done file table and send alerts when you find new records.

Both options seem lacking.

0
Michael Lundberg  Aug 29, 2017 to Eduard Lebedyuk

Hi and thank you for ansver!

I have look at the  InboundAdapter class and that will probably be our choice, since we not know any other way. As an option i was thinking to monitoring the eventlog in some way.

Just by pure curiosity, what table is "done file table "?

Appreciate your response, thanks!

- Michael

0
Eduard Lebedyuk  Aug 29, 2017 to Michael Lundberg

It's a global  that stores information about processed files. It can be accessed via $$$DoneFileTable macro - it's defined in EnsLib.File.InboundAdapter.

0
Michael Lundberg  Sep 4, 2017 to Eduard Lebedyuk

Hi

Thanks for that. We will decide some of these suggestions

Sincerly,

Michael

0
John Murray  Sep 4, 2017 to Michael Lundberg

Michael, please consider setting the checkmark alongside the Eduard's answer. Doing this will mean DC can show your question as "answered". It also gives Eduard credit for helping you.

0