I have been trying to use the python script as below to export a report to PDF document. The code seems to be working fine for ArcGIS Pro 2.3 however the same code shows error unable to write to location with ArcGIS Pro 2.6.1
Steps to reproduce:
1. Create a report in ArcGIS Pro 2.6.1
2. In the Python console, try the below code:
arpx = arcpy.mp.ArcGISProject(r"C:\Users\Administrator\Documents\ArcGIS\Projects\PrintTemplate\PrintTemplate.aprx")
report = arpx.listReports()
Error as shown in the below screenshot:
I have tried with different systems, and even tried granting full access but no success.
Appreciate if anyone has faced this issue and can provide some workaround.