Another 'Entry not found in index' problem

I have modifed a copy of the ‘ImportHoliday’ agent to use with an Events database, so it works similarly to the Holidays view in the Servers address book. I have copied and modified the Holiday form from the Servers names.nsf as a form in my Events database.

I have changed any reference to Holiday in the code to Event

I can add the events into the users calendar no problem, but when I try to open the document, I get the error message ‘Error trying to open document: Entry not found in index’, then it opens ok.

anyone have any idea why this is happening

Regards.

David