Problem with emails with  "Invalid or non existent document"

Posted on 2004-11-11
Last Modified: 2013-12-18
When this error occurs "Invalid or non existent document" with  a notes client's email. The email cannot be deleted unless by doing a Shift/F9 (repair of the index) this will get rid of the email. Is there a way to restore the email without needing to restore from a tape backup or having the sender re-send the email? I would like to avoid even doing a SHIFT/F9 to get any email fixed.
Question by:twizted_teck
    LVL 31

    Expert Comment

    That error usually occurs with an out of date or corruptindex (which shift-f9 usually fixes permanently).  The document, in all cases, was already deleted, it was just still showing in the view.  The document could have been deleted automatically if it was corrupt (fixup will do this -- it actually purges the document without leaving a deletion stub, which is what normal deletion would leave). Or, the user could have simply deleted the document, though this usually results in Document has been deleted, not in Invalid or nonexistent document.

    If this error occirs repeatedly, I have two suggestions:
    1) hunt down what is causing the document to get deleted in teh first place, check your logs
    2) if shift-f9 fixes the problem but t returns for the same view, doa complete replace design of the user mailbox, because it sounds as if the design source has become corrupted

    It also can't hurt to do a full compact/fixup/reindex

    LVL 31

    Accepted Solution

    FYI, this really elongs in the Lotus DOmino Administration topic area.
    LVL 5

    Author Comment

    So after the email has become corrupt, it is impossible to fix the email other than to restore from tape media or having the email re-sent?
    LVL 31

    Expert Comment

    The email has not become corrupt, only the view index.  However, it is possible that a "deeper" case is that some of the messages became corrupt and were purged (since a corrupt document is not permitted).  Docs unexpectdly purged might cause the index to fail to update (so it leaves an entry for the purged doc, with no actual document behind it).  View rebuild causes complete initialization of view index, so only valid docs are added back in.

    Does that clarify?

    If you did lose a corrupt doc, thn yes, the only way to get it back is from a separate copy (which could be tape, or could be a replicated/clustered mail file copy).
    LVL 5

    Author Comment

    Thanks for your help qualetee!!!

    Expert Comment

    I am using C to render the note. I am stucked when I come to the point CompoundTextAddRenderedNote(params..........)
    It is giving ERROR code 551->"Invalid or nonexistent document".
    How to get rid of from this issue...? Please help me.

    Below is the attaced NSF.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now