AnsweredAssumed Answered

Python toolbox building a PDF report with reportlab crashes ArcSOC.exe

Question asked by fraserhand on Sep 18, 2016
Latest reply on Apr 25, 2018 by fsheagle-co-nz-esridist

Hi There,

I have a Python toolbox published to ArcGIS for Server 10.3.1 that uses the reportlab python module to create  PDF. What I am seeing is that the after we have built the PDF scaffold once we try to build it the ArcSOC.exe crashes. This is on the reportlab pdf document build() function. If we try to execute the tool again it runs fine. This is a multiple machine site but both machines are the same and it seems to crash on both nodes. The script works fine every time from the Python interpreter.

Is there any additional logging we can get to, which may explain why the ArcSOC crashes? Does ArcGIS Server set up the Python environment in a certain way as I see errors (especially around encoding) occur in the Esri environment that doesn't happen in a pure Python environment?

Has anyone seen similar issues using reporlab? Has anyone seen ArcSOCs crash during Python toolbox execution?

Many thanks

Fraser

Outcomes