Found this one out today. If you have querySaveDocument code and you have a button of type submit that has an action that saves the document, your querySave code will actually run twice.
Get expert Domino tips and techniques for Lotuscript, Java, Javascript, SSJS and XPages here. I have over 15 years of experience with Domino, Java, and XPages.