Notes error: Entry not found in index
You are in luck, for here is the answer to your woes.
If you are navigating through a Notes View using a ViewNavigator on a remote database and get that error there is one usual culprit: the view has auto-update turned on. There is a simple fix luckily. Simply disable autoupdate on that view before you loop through the navigator, and then re-enable it when you are done. Here is an example:
View view = database.getView("yourview");
ViewNavigator nav = view.createViewNavigator();
ViewEntry entry = nav.getFirst();
view.setAutoUpdate(false);
while(entry!=null){
//do stuff with the entry
ViewEntry temp = entry;
entry = nav.getNext(entry);
temp.recycle();
}
view.setAutoUpdate(true);
Voila! No more error.
No comments:
Post a Comment