Sounds to me like the problem is in your agent. If you temporarily remove the code that calls the WebQuerySave agent, will the form save a document on the server? If so, that pretty much indicates the problem is in the agent. Using the NotesLog class for debugging is a good idea (I use it all the time), but are you sure you are successfully opening the log? If so, are you sure the log statements are either before the error or would be written even if an error occurs? For example, your error handler writes the error to the log. You might also check the server console when you submit the form to see if any errors are displayed on the console. Hope that helps.
Dig Deeper on Domino Resources - Part 4
Related Q&A from Dave Hatter
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.