cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Server 2013: How to troubleshoot "Can not create temp file---- Error code:-2147215357"

0 Kudos

We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.

The app is being deployed on many different servers. We sometimes got the error below when generating report:

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)

Problem is, this seems to be  a pretty generic exception. It could be caused by many different reasons.

e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.

Each time we could only guess what's wrong.

We are running into it again, and this time everything seems correctly configured so far.

We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Henry,

I am facing the same issue, or at least the same error.  Did you get it resolved?  If so, what was the problem?

Thanks

Bryce

Former Member
0 Kudos

Hi Henry,

I believe you are using RAS SDKs to export the reports to PDF.

Apply trace on RAS server and check what you find in RAS logs.

Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.

Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.

Thanks,

Prithvi

Former Member
0 Kudos

Hi Prithvi,

I developed a Java app using the Viewer and RAS SDKs to both display and export the reports to PDF. I did not encounter any issues when connecting my application with CRS 2013. However, when connecting my application to CRS 2011, I am getting the exact error as Henry's.

I made sure that the Temp folder has write access too. Also, there are no Crystal log files indicating any further details about this error.

Could the problem be that RAS SDK 2013 is not compatible with CRS 2011?

DellSC
Active Contributor
0 Kudos

Clive Gerada wrote:

Could the problem be that RAS SDK 2013 is not compatible with CRS 2011?

Yes, that could very well be the problem.  You would need to have the Java SDK that comes with CRS 2011 in order to correctly work with CRS 2011.  To get this, download the CRS 2011 Client Tools install from the Service Marketplace and install the Java SDK from the "Developer Components" part of the installation.

-Dell

0 Kudos

That's what I was talking about. No matter what the problem cause was, it only shows the same error "Can't create temp file". It's impossible to troubleshoot..........

If someone here is responsible for writing that SDK, I hope you guys can consider improving the error handling, to show different error messages for different problems.

0 Kudos

Prithviraj Shekhawat wrote:

Hi Henry,

I believe you are using RAS SDKs to export the reports to PDF.

Apply trace on RAS server and check what you find in RAS logs.

Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.

Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.

Thanks,

Prithvi

>>I believe you are using RAS SDKs to export the reports to PDF.

Yes

>>Apply trace on RAS server and check what you find in RAS logs.

>>Check whether you can see timeout error is RAS logs.

How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?

>>Also, does the account that runs RAS have permissions to create

>>a file in RAS's default temp directory?

Pretty sure yes.

>> Are you getting any out of memory or out of disk space exceptions

>>on App server or RAS, tracing RAS server is the way to move forward.

Not on App server.

For RAS, that's the problem, I am not sure where to look.......

Former Member
0 Kudos

Hi Henry,

Follow the steps to enable tracing on RAS.

  1. Go to the CMC (http://webservr:8080/BOE/CMC/
  2. Go to the list of servers. 
  3. Select a server(Report Application Server) and go to properties. 
  4. Go to Trace Log Service and set the desired log level. 
  5. Click "Save and Close"

Note: You do not need to restart a server for the logging to take effect. The logs will appear in the logging directory, usually <installation path>\SAP BusinessObjects Enterprise XI 4.0\logging\ on Windows and <installation path>/sap_bobj/logging/ on Unix. The file extensions will usually end in .glf instead of .log. You will also see .log, .prf, .bxx (where xx is a number from 00 upwards) and .trc files.

Thanks,

Prithvi

Former Member
0 Kudos

Hi all,

I managed to download the CRS 2011 Client Tools and install it as suggested by Dell. I replaced the jar files from the installation, and my application worked perfectly. In my case, the problem was nothing from the code or the CRS settings but from the jar files.