Jump to content
We've recently updated our Privacy Statement, available here ×

Export failed with status value cancelled


nojha
Go to solution Solved by nojha,

Recommended Posts

I have used visualize.js to export jasper report to PDF, XLSX and CSV. Everything works fine except I get export error for XLSX and/or CSV from time to time. When I got export failed, the response from jasper server is status = cancelled. The strange thing is same report can be downloaded successfully sometimes and sometimes it fails with the status cancelled. 

If the report is exported to XLSX or CSV from jaspersoft interface, there is no issue.

I have tried everything that looks like possible solution but none of them helped. Can someone guide me how could I fix this issue?

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Finally I found the solution of the above problem and I am posting it here so that it might save someones time. 

To fix above issue we have to put export code to the changeTotalPages event callback because it makes sure that the export process start to run after the report is loaded. 

Hope it helps!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...