IBM Notes client error: Entry Not Found in Index
Published: Friday, 14 July 2017 | Categories: Notes | Keywords: Archive | Status: Posted | Created: Friday, 14 July 2017 | Author: paul

When using the Archive Now option in IBM Notes client it displays the error message "Entry Not Found in Index".

This can be due to an archiving criteria which uses the selection "older than" and the mailfile contains documents without a valid creation date.

This can be fixed by running a script to check for any such documents and remove then manually.

Create a hotspot button and insert the code below (thanks to Alexander Bay) and send it to the user to run.

' Lotus Script send as button within a mail

Dim s As New NotesSession
Dim viwApptUNID As NotesView
Dim docol As NotesDocumentCollection
Dim doc As NotesDocument

'    Set viwApptUNID
Set viwApptUNID = s.CurrentDatabase.GetView("$ApptUNID")
If viwApptUNID Is Nothing Then Msgbox "Cannot find view '$ApptUNID'"

'    Set docol
Set docol = s.CurrentDatabase.CreateDocumentCollection

'    Loop through all docs in view
Set doc = viwApptUNID.GetFirstDocument
While Not doc Is Nothing
If Instr(Join(Evaluate("@Text(@Created; S2)", doc)), "*") > 0 Then Call docol.AddDocument(doc)    ' @Created is save here, Document.Created sometimes delivers a date valid formatted but containing crypted components
Set doc = viwApptUNID.GetNextDocument(doc)
Wend    ' Not doc Is Nothing

'    Handle result
If docol.Count > 0 Then
Call docol.PutAllInFolder("aaa_BAD_CreationDate")
' Call docol.RemoveAll(true)    ' Hard deletes all documents found. Used only in case the documents cannot be deleted through UI
Msgbox Cstr(docol.Count) & " damaged calendar entries found and moved to folder 'aaa_BAD_CreationDate'"
Msgbox "No damaged calendar entries found."
End If


If it finds a document (usually a calendar entry created from ical) then manually cut and paste to archive file. Now try to archive now again and it should complete.

Further information here: http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=4A9632D845EA53D885257F07005F799C

Add Comment
No Comments.