I have a process that populates a documentForm. I extract the data from that form using exportData that puts the output in an XPath of type document. If I route directly to a renderPDF using that same XPath, and pass that output to a writeDocument, the document is written to disk fine. If I stick a setValue between my exportData (to set other variables) and the renderPDF, I get document corruption when I attempt to open the written file???