"After mail arrives" does not process all documents

In a mail-in database I have a LotusScript agent triggered for “After mail arrives”. The database receives formatted messages from a event registration web site. At the moment the database receives some hundred registrations per day.

After processing the agent sets a Status field to mark the messages for success or errors. At the and the agent calls session.UpdateProcessedDoc(memo).

In general the Agent works fine, but today we found six unprocessed messages that arrived yesterday. The documents dont have the Status field, so they actually never have been completely processed.

Questions:

  1. Is there a way to mark the document as unprocessed, so they get processed together with the next message that arrives?

  2. Have others seen this too? What have you done to solve the problem?

  3. How can this happen?

As a workaround I can think of a copy of the agent that periiodically runs on all messages not having the Status field set. Are there any clues by doing this?

Since the system runs in a productive environment I cannot experiment and risk to loose any registrations.

Any ideas are welcome.

Peter

Subject: “After mail arrives” does not process all documents

I’ve not used an “After mail arrives” agent for ages (years), because of similar problems.

I always use a “Before mail arrives” agent. This executes on each incoming document, which you can get using

Set notesdocument = session.DocumentContext

and then do your processing on this doc.

I’ve not had any problems with this type of agent, so perhaps you can use this type of agent and see how it goes.

Hope this helps,

Craig