Java error with Database.getView()

This code used to work, and then just stopped one day. I’m not sure why, and I’m trying to fix it. This is in JavaAgent.NotesMain()

String sDocID = agentContext.getCurrentAgent().getParameterDocID();

Database db = agentContext.getCurrentDatabase();

Employee emp;

Document doc;

View vwUnprocessed;

if (agentContext.getDocumentContext() == null) {

vwUnprocessed = db.getView("vwUnprocessed");

At this point I’m getting an error message “Notes error: Entry already in index”.

I’m not really sure what this is telling me, or what I could be doing wrong. I’ve run fixup and updall -r in case something is corrupted in the view. I cleaned out any replication/save conflicts.

I’m not exactly a Java guru, but this seems straightforward enough. Anyone have any idea?

Subject: 8.5.2 Java method getView still returns error “Entry already in index”

We have the same situation after upgrading to 8.5 :frowning: Web application with Java query save agent working fine before upgrade. A reason to upgrade design to xPages, or does anybody have a simpler solution?

Subject: Follow up

So I’ve been trying to figure out how to get a handle on the view I need. db.getViews() returns the same error.