Notes error field not found

In a Notes 5 database, I edited, using Notes 6 designer, a LotusScript library. After that, Notes 5 users were sometimes getting an error that says “Notes error field not found.” All I did in this library was include the Subject field of documents in a message the users receive when this database sends mail.

After this, the script library was pasted into a Notes 6 template, then the template was re-created in R5 because the company decided not to go to Notes 6. I recreated the template with R5 Designer, but pasted the script library from the original R5 database. The error went away, then re-appeared when the database was moved to production.

How can I figure out where the error is coming from? Could it happen because I originally used Notes6 to make the change?

Another symptom is that in R5, turning on the LotusScript debugger never brings up the debugger and this library appears not to run. It’s purpose is to run when the QuerySave event happens to allow the user to choose whether or not to send mail in some situations.

Thanks.

Jim