« if I knew then what I know now | Main| Quick tip: SmartIcon to ping PlanetLotus »

Quick tip: use agent selections compatible with your target version of Domino

Category domino
I was just asked if I knew the cause of the following error message:
Lotus Notes Exception - Unsupported trigger and search type for agent being run in the background

The agent reporting the error had been written in Domino Designer 8 but was running on Domino 7. In 8, "None" was added as a valid target for scheduled agents, but since that target is new, an agent using that target will only run on 8 or above. If you receive this error (or a variation upon it), reset the trigger ("on event" / "on schedule") and target to a combination valid for your target environment and use case.

NOTE: the only impact I am aware of in changing the target from "None" to "All documents in database" is (sorry if this is already obvious) that it causes a call to NotesDatabase.UnprocessedDocuments (when the NotesDatabase handle is equivalent to NotesSession.CurrentDatabase) to return a NotesDocumentCollection containing all documents in the current database. If you were previously using "None" as the target, this doesn't matter since you weren't using UnprocessedDocuments anyway. Theoretically there should be at least a slight performance benefit from using "None" as the target now in 8, but so far I haven't seen significant differences between the two.

Comments

Gravatar Image1 - Any time, my friend.

Gravatar Image2 - Thanks again Tim! YOU ROCK!

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Contact Me

Hire Me

What the Quote?

"Mmm... victory tastes like lip."

Laura Hearron

"Thank you, that's my elbow. It's kinda like a nipple for my arm."

Laura Tripcony

"Silhouettes can't hurt me!"

Laura Tripcony

Elsewhere

Assorted Linkage

Apparel

Lotus Rocks

I write the code that makes the young girls cry

ClustrMap