Notes error: Entry not found in index

Posted on 2004-11-03
Last Modified: 2013-12-18
Hi, I have some code that walks through a view and modifies each document.

Set doc = view.GetFirstDocument
While Not(doc Is Nothing)
     Set tempDoc = doc
     'modify doc...
     Call doc.Save(False, True)
     Set doc = view.GetNextDocument(tempDoc)

I'm using tempDoc because after I modify doc, GetNextDocument(doc) does not return the next document (is this expected?).  The code above worked fine before, but for some reason it no longer works - I get the Notes error: Entry not found in index.  I didn't make any other changes to the agent, so I don't know why this has stopped working now...

Any help would be much appreciated.  Thanks!
Question by:pw05
    1 Comment
    LVL 24

    Accepted Solution

    Probably after the save the document is falling off the view..So check the select condition of the view and make sure the document fields related to the select is not altered in a way if drops off the view or correct the select condition in the view to match up with the correct field values


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
    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.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    759 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

    14 Experts available now in Live!

    Get 1:1 Help Now