I have an agent that runs the UpdateFTIndex command at the end of the agent, but the Index does not get updated.
The code executes (I have a test-print-command before and after to varify). I have signed the agent with my ID (designer) and the server ID with the same results. There are no errors or warnings on the server console.
Any ideas why the index is not being updated when the agent runs?
Here is the code that I use:
Dim session As New NotesSession
Set db = session.CurrentDatabase
If ( db.LastModified > db.LastFTIndexed ) Then
Msgbox("Agent is Updating Index")
Call db.UpdateFTIndex( True )
End If