I have the following method that automates the process of generating our monthly security reports. This month however the reports generated as empty. the HTML, XML, and CSV were intact bu tthey were devoid of any information. I was able to manually generate reports from the ZAP UI but i'm concerned about what this could mean for our automation efforts.
```
public void reports() throws ClientApiException, IOException, TransformerException {
checkScanStatus();
buildContext();
List<ZapAlert> falsePositives = getUnmarkedFalsePositives();
updateFalsePositives(falsePositives);
clientApi.reports.generate(contextName,
"traditional-html",
null,
null,
contextName,
null,
null,
null,
null,
contextName,
null,
TARGET_OUTPUT_DIR,
"true");
clientApi.reports.generate(contextName,
"traditional-xml",
null,
null,
contextName,
null,
null,
null,
null,
contextName,
null,
TARGET_OUTPUT_DIR,
"true");
xmlToCsv();
}
```