Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

Report publishing problem

$
0
0
Hi all,

I'm trying to automate report production and am running into a strange problem; I can publish the report manually via the GUI without a problem, however, when I try in the arcpy window it gives me this runtime error. I've tried numerous permutations, with different data sets, and on different machines, but keep getting the same error.

Code:

>>> arcpy.mapping.ExportReport('zipcodes', "C:\Temp\fad.rlf", "C:\Temp\fad.pdf")
Runtime error
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\utils.py", line 181, in fn_
    return fn(*args, **kw)
  File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\mapping.py", line 507, in ExportReport
    assert isinstance(report_source, (MapDocument, TableView, Layer)), str(type(report_source))
AssertionError: <type 'str'>


Viewing all articles
Browse latest Browse all 2328

Trending Articles