CreateFTIndex issue

I’m having an issue trying to create a Full Text Index on a database that was just created by Lotusscript.

The issue is that the FT index is not created, no Notes Errors are thrown, but the following is written to the Notes Log:

08/18/2008 11:56:42 AM Agent Manager: Full text operations on database ‘db.nsf’ which is not full text indexed. This is extremely inefficient.

A bit odd considering the only full text operation I am performing is to create one.

Here is the script that calls the agent to create the index:

Set template = New NotesDatabase(ServerName, “template.ntf”)

Set newDb = template.CreateFromTemplate(ServerName, “db.nsf”, True)

Set agent = newDB.GetAgent(“CreateFTIndex”)

If agent.RunOnServer() <> 0 Then

msgbox "Unable to create FTIndex. Agent Failed"

End If

Here is the code in the agent (less the error handler and declarations):

Set db = sess.CurrentDatabase

Call db.CreateFTIndex(2, False)

Subject: try to add one document to the database before creating FTIndex

Subject: Possibly it was a misleading error message…

and you have a different problem, like insufficient access. Whose authorities is the agent running with? Does that ID have ability to index that database?

Subject: RE: misleading error

The agent was signed by me and the code that calls it was triggered by me.

My user id has manager access since I just created the DB and I can manually create the FT Index after. So I don’t think its access related.

Subject: Rob…contact me

I’m at ceo@search-n-mark.com