I could really use some help with this.
Here are some more details on my workflow:
1) present form A to the user.
2) after form A is submitted, I extract the data.
3) using the renderPDFForm service, I create a new form B with the
data extracted from form A.
4) form B is sent to the first approver on the list.
I have never had a failure up to this point.
5) after form B is approved, I again extract the form data, update
a timestamp, and re-import the data back in to form B. I do *not*
use the renderPDFForm service here, just import the data.
6) next form B is assigned to the next approver on the list.
7) steps 5 and 6 are repeated until the form is approved by everyone
on the list.
8) now I use the renderPDFForm service to re-render form B, this time
with some attachments included.
This is the point where I'm seeing the failures most often. If the
entire approval process takes more than about 15 - 20 minutes, I get
the document not available exception. If it happens within a couple
of minutes, there's no problem.
Ofcourse, in a real world scenario the entire approval process will
probably take days.
Note, the exception has also occurred between steps 6 & 7.
Thanks for your help.