Has anyone else run into the following error message when generating templates to Word (ie, using the screen output option in GP)?
Run-time error '509':
The SetDocumentDirty command is not available because the document is locked for editing.
There are three options to choose from: End, Debug, Help
We are choosing End and the Word document is fine and can be handled as any other Word document. We have no idea what the message means. Our ISP is reviewing to see if they can determine the issue.
The message happens on the SOP and POP sides. In listening to their stories, I think (but have no way of supporting this theory yet) that the message happens when a template (not necessarily the same template) has been used and the document is open in Word. On the SOP side, it happens when they generate both the Invoice and Packing Slip at the same time but no message appears. The invoice is generated first, then the error message appears. The strange part is that the message does not happen each time they do this though which is why my theory falls apart. Also, they said it happens when just generating the invoice, but could not remember if the error message happened while leaving open the first invoice generated then generated a second or if it happened when just generating one invoice only. On the POP side, she generated two separate purchase orders to screen, but not at the same time. She generated one, then went back to GP and generated the next one. She was so busy though that she was not paying attention to the Word side, so she could not tell me if the message appeared after generating the first or the second PO.
If you know about this error, is there a way to prevent it from appearing?
Oh, we are on GP 2010 SP1.
*This post is locked for comments