Full Index not updating document

After upgrading domino 8.0.2 to 8.5.1, I have gotten a strange problem in one of my database.

I have a button in a view where I run an agent with a Lotusscript where I change the UniversalID on current document. The purpose is to make a new revisjon active. In this prosess I use 3 documents. The new activ document are been saved with this code:

active_ID$ = active_doc.UniversalID

Call active_doc.Remove(True)

new_old_doc.UniversalID = active_ID$

new_old_doc.Status = “Activ”

Call new_old_doc.Save( True, False )

The new document are saved and everything are looking good. But the fullIndex are not discover the new document??? “All are Indexed”

I have to save the document again manually to trigger the index for a update of the Index.

I have trayed to run the indexer manually, but it will not index it???

This button has worked fine in Domino 8.0.2 for over a year.

Any Idea?

Subject: Got it!

Found it!- I have to lock.

active_ID$ = active_doc.UniversalID

Call active_doc.Lock(“”, True)

Call active_doc.Remove(True)

new_old_doc.UniversalID = active_ID$

new_old_doc.Status = “Activ”

Call new_old_doc.Save( True, False )

Then the index worked.

:slight_smile: