5Star
5Star

Reputation: 3

Issue in reading next document from Lotus Notes View

I have written a .net code to do some operations with documents in lotus notes view. It worked fine for one document, While reading next entry it throws this error highlighting the GetNextDocument line.

 Entry not found in index

Part of code:

doc = view.GetFirstDocument();
While(doc != null)
{
..........
doc = view.GetNextDocument(doc);
}

Please suggest whether is there any alternative to do this, or ways to resolve this error. Thank you

Upvotes: 0

Views: 79

Answers (1)

Knut Herrmann
Knut Herrmann

Reputation: 30960

doc gets probably removed from view withing the while loop.

Add

view.setAutoUpdate(false)

in front of the while loop see.

Upvotes: 2

Related Questions