This is the error we are getting for a report, any suggestions.
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
Request clarification before answering.
Hi Rajan,
Thanks for the replies.
to save to disk try reportClientDocument.saveAs(name,path);
If you can open this report without prompts and have all of the correct data, then there's not likely anything wrong with your code. If you are missing a param value or get prompted for anything when opening (not refreshing) then focus on the code covering the area which is not quite right (ie setting params, formulas etc).
For filesystem access and writing temp files, check three places:
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel, Please find my answers.
What version of CR are you using?
14.0.5
What is the line of code throwing the exception?
InputStream inputStream = outputController.export(reportExportFormat);
It appears you are exporting so ensure that the application has permissions to write to the location you are exporting to as well as the temp directory.
is there a way to find out temp directory that the crystal server is using.
If you try a SaveAs instead of export and save as a Crystal report and open it, does it contain all of the correct saved data?
we are generating report on the fly not sure how to save it with API.
does the report have parameters and are the values being set prior to export?
Yes, we are setting the required parameter before calling export.
Thanks for you help.
Rajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajan,
What version of CR are you using?
What is the line of code throwing the exception?
It appears you are exporting so ensure that the application has permissions to write to the location you are exporting to as well as the temp directory.
If you try a SaveAs instead of export and save as a Crystal report and open it, does it contain all of the correct saved data?
Additionally, does the report have parameters and are the values being set prior to export?
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.