I've written an application that generates double-sided pdf-Documents. In the main module it loops through up to 1700 numbers and for each of them it generates in an own module the backside-pdf and the frontside-pdf. Back in the main it creates a new empty pdf and appends the frontside and the backside.
This works fine for the first about 700 or so numbers. But then the following error appears as it tries to create the first of the pdfs for this numer:
[PHP]PYTHON ERRORS:
Traceback info:
File "H:\Moorinventar\FM_OBJEKTBLAETTER\Scripts\Rueckseite.py", line 669, in main
arcpy.mapping.ExportToPDF(mxd, pdf_doc,"PAGE_LAYOUT")
Error Info:
PageLayoutObject: Error in executing ExportToPDF[/PHP]
(That's how I create my pfd-path:
pdf_doc = os.path.join(pfad_pdf,"Seite_2_" + str(AKT_FM.Nummer) + ".pdf") )
When I restart the script, beginning at number 700, then it works fine, until the same error appears again after the next about 700 numbers.
I guess the problem is not really the ExportToPDF, but rather something with the file system / folder... (all pdfs are written in the same folder. The back- and frontside-pdf are deleted, once the doublesided-pdf is created).
Any ideas what could be the problem? Thanks in advance!
Vera