Domino & Notes error

NotesException: Object has been removed or recycled

What it means

Java code used a Domino object after it, or its parent object, had been recycled, so the underlying C object no longer exists.

Common causes

  • Calling recycle() on an object and then using it again
  • Recycling a parent (such as a database or view) which also recycles its children
  • Recycling in the wrong order inside loops, or sharing objects across threads

Quick fixes

  1. Get the next document before recycling the current one in loops
  2. Only recycle objects you have finished with, and parents last
  3. Don't keep Domino objects between agent runs or across threads

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.