I have an agent loooping through all documents in a database to set a few fields. The agent has an Error Handler in case something goes wrong (On Error Goto ErrorHandler).
Somewhere in this code, the agent stops with the famous “Field is too large (32K) or View’s column & selection formulas are too large” message.
The strange thing is that it doesn’t seem to enter the ErrorHandler (should it?). I have copies the .nsf file to another server for testing, but that server has no problems running the agent?!?
I am a bit out of my league here…
Subject: Field is too large (32K) or View’s column…
I think that your problem is not a bug in the agent but a data corruption in the database. If you copy the database with notes corrupt document are not copied (this is the way to repair a db if fixup doesn´t work). So delete the db and copy it from the other server again and the problem should be gone.
Subject: RE: Field is too large (32K) or View’s column…
Problem solved!
A collegue had already added code to work around the 32k bug, but used a Goto in the error handler instead of a Resume. Therefore, the error wasn’t considered handled and it didn’t enter the handler on the second occurence of the same error (32k bug).