I created a report in ArcMap that I would like to use to export reports for my data as PDFs, the problem is that when I run the report for all my data, there is not enough memory to handle it. One way to fix it is to select each row one by one and run the report on only the selected features. This would take a long time thought as I have over a hundred reports that would be generated.
I am wondering if it is possible to run a python script to loop through my main data table, select the record, and then run my report on that selected feature, export that report to a PDF and then continue iterating through the other features in the same way.
This is what I have so far, but I am not sure how to call the report to run in my script. Any ideas?
import arcpy
from arcpy import da
import os
#input the tank layer
inTable = arcpy.GetParameterAsText(0)
#specify output location for reports
fileLocation = arcpy.GetParameterAsText(1)
#tanks is my main data layer
tanks=da.SearchCursor(inTable)
#loop through layer
for item in tanks:
#select feature
#run report
#export report to fileLocation