Error jsexception.folder.not.found.at when exporting results of an Adh-hoc reports in JasperServer

book

Article ID: 222567

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

When trying to export the results of an Ad-hoc report to csv, pdf, xls, etc... the following error appears in jasperserver.log

ERROR ReportGeneratorController,http-nio-9080-exec-4:102 - report generator controller exception: 

...

Caused by: com.jaspersoft.jasperserver.api.metadata.common.service.JSResourceNotFoundException: jsexception.folder.not.found.at
Arguments: "/<path>/temp",
 at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryServiceImpl.getFolder(HibernateRepositoryServiceImpl.java:520)
 at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryServiceImpl.getRepoResource(HibernateRepositoryServiceImpl.java:703)
 at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryServiceImpl$14.execute(HibernateRepositoryServiceImpl.java:581)
 at com.jaspersoft.jasperserver.api.metadata.common.service.impl.HibernateDaoImpl.executeWriteCallback(HibernateDaoImpl.java

Cause

temp folder is missing and it's required when exporting/saving a report

Environment

Release : 17.x

Component : SDM - Reporting/BOXI/JasperSoft

Resolution

1. Log into JasperServer as superuser

2. View > Repository

3. Locate the path mentioned in the error message from jasperserver.log (you can do a right-click on a folder > Properties to see the path)

4. Create the missing temp folder (right-click > Add Folder) in the path shown in the error message.

5. Right-click on the new temp folder > Properties: Allow the Roles to create files in this new folder.

Example:

If the error shows: 

Caused by: com.jaspersoft.jasperserver.api.metadata.common.service.JSResourceNotFoundException: jsexception.folder.not.found.at
Arguments: "/organizations/casm_insights/temp",

then create the temp folder under /organizations/casm_insights

Attachments