Empty report generated when exporting custom report to CSV format.

Empty report generated when exporting custom report to CSV format.

486
Created On 10/07/25 08:14 AM - Last Modified 01/13/26 21:00 PM


Symptom


  • When exporting a custom report to CSV, the resulting file is empty (zero data). XML and PDF exports are working fine.
  • reportd.log (less mp-log reportd.log) shows below error.
+0900 Trace: pan_reportjobmgr_thread - REPORTJOB: type PAN_REPORTJOB_EXPORT, id 2264
Traceback (most recent call last):
  File "/usr/local/bin/report_xml_to_csv.sh", line 343, in <module>
    parser.setContentHandler(LinksHandler(UnicodeWriter(codecs.getwriter('utf8')(sys.stdout.buffer))))
  File "/usr/lib64/python3.6/codecs.py", line 408, in __getattr__
    return getattr(self.stream, name)
AttributeError: '_io.BufferedWriter' object has no attribute 'buffer'
  • Export CSV on ACC is also affected.


Environment


  • Next-Generation Firewall or Panorama
  • PAN-OS 10.2.17, 11.2.8, 11.2.9 or 11.2.10


Cause


Software Issue.



Resolution


  1. This issue has been fixed as PAN-297005.
  2. Upgrading to the fixed versions will resolve the issue
  3. The list of fixed versions are below
    • 12.2.0
    • 11.2.11 12.1.4
    •  12.1.5
    •  11.1.14
    •  11.1.13
    •  11.1.10-h10
    •  11.2.10-h2
    •  11.2.7-h8

Workaround:

  • Generate the report in XML format and then use a 3rd party application like Excel to open the file and convert it to CSV format.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1Ki000000bluZKAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail