PDF Sub-report gives error "Getting error when try to export a report with subreport as pdf"

Document ID : KB000098044
Last Modified Date : 25/05/2018
Show Technical Document Details
If a report comes with a sub-report, it will return a path not found error when trying to export it as PDF format.
It works fine for other file format(docx, rtf, etc) but only fail to pdf. 

Error Message
java.lang.IllegalArgumentException: path cannot be empty

Error Trace
java.lang.IllegalArgumentException: path cannot be empty at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.util.RepositoryUtils.resolveRelativePath(RepositoryUtils.java:138) at com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepoRepositoryService.getInputStream(RepoRepositoryService.java:78) at net.sf.jasperreports.repo.InputStreamPersistenceService.load(InputStreamPersistenceService.java:45) at com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepoRepositoryService.getResource(RepoRepositoryService.java:148)
ITSM 17.0
Please also try checking the Jaspersoft Forums.

This post contains the same error when exporting only to PDF format and is worth a look at:

Custom reports are out of scope for CA Support.