COM error on delegated calendar full text search

Hello,

I have two mail files (from different users) and I’m working with calendar entries in each of them. One of them allows me to run the following code:

l_oDocCol = g_oLNdb.FTSearch(‘[Categories] CONTAINS MyCategory’,0)

The other throws this error:

IDispatch exception code 0 from NotesDatabase: Notes error: You are not authorized to perform that operation ([Categories] CONTAINS MyCategory)…

As far as I know, I have full read/write access to the calendar on both mail files.

Can anyone give me a place to start on why one would throw an error and not the other one?

Thanks.

Bill

Subject: Ensure both DBs are full text indexed

Subject: COM error on delegated calendar full text search.

The only problem is that I check for the index first and it appears as though it is full text indexed:

IF g_oLNdb.IsFTIndexed AND ;

g_oLNdb.LastFTIndexed > l_tLastSync



l_oDocCol =	g_oLNdb.FTSearch('[Categories] CONTAINS MyCategory',0)

ENDIF

Subject: COM error on delegated calendar full text search.

And here’s another weirdness, a regular db.search works fine.

IF g_oLNdb.IsFTIndexed AND ;

g_oLNdb.LastFTIndexed > l_tLastSync

***** THIS BLOWS UP WITH A COM ERROR EVEN THOUGH THE MAILFILE IS INDEXED ******

l_oDocCol =	g_oLNdb.FTSearch('[Categories] CONTAINS MySummary',0)

ELSE

l_oNullDateTime =	g_oLNSession.CreateDateTime("")

***** THIS RUNS FINE ******

l_oDocCol =	g_oLNdb.Search('Categories = "MySummary"',l_oNullDateTime,0)

ENDIF