Invalid or nonexistent document

Wardie5 used Ask the Experts™
What would cause an error "Invalid or nonexistent document" and not allow anyone back in a database. This has happened with 2 dbs.  
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
This is usually going to happen if you've done a ftsearch or view collection and you're walking through the view or whatever and you come on a document that has been deleted.  The deletion stub is still there.

remember, a view is a note in and of itself, and is an index to documents.  If the view isn't 100% up to date, it could easily have an entry for a document that no longer exists, and wouldn't be discovered until you tried to access the back end document.

Walk the view like this...

set doc = view.getfirstdocument
while not doc is nothing
if doc.isvalid
......<do whatever>
end if
set doc = view.getnextdocument(doc)
Is occurred to me after releasing a new db version.
Several events (database, views, documents and agents) runt bits of Lotusscript. Most of them use a script library, but the problem mainly occured on agents.

Once (in prod.) the script libraries and the agents were re-compiled (add a random character to the code; delete it again and save; do so 1st on the lib, then on the agent) the problem dissapeared.

Seemed as if the agents and the libraries did not fit together.

Have you tried the debugger, to see if you can find a cause? In my case I couldn't: it was a scheduled agent.
I would suspect the database open scripts looking for some kinda admin or setup or profile document which has to be recreated.

Check the launch property of the database and see it points to the design element which exists.


The launched navigator or frame is pointing to some design element (page or view or form) which is'nt esixting.

Zvonko זְאֵבSystems architect
Top Expert 2006

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Accept: HemanthaKumar {http:#7469704}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial