cancel
Showing results for 
Search instead for 
Did you mean: 

"Load Report Failed" error when initializing a Crystal Report forms at start up

Former Member
0 Kudos

Hello,

     This is my first time posting on this forum.

     My company recently began noticing an intermittent error which is thrown by Crystal Reports as our application is starting up. The error is a simple message which states, "Load Report Failed". This error message is thrown sporadically at best, and normally is benign. However, this error is also occasionally followed immediately by an AppCrash.

     The reason that this is happening at start up is because we initialize a bare report at this time in order to increase Crystal Report load times later on. The call here is very simple, we basically set the form location to be off screen, and then show and close it. Unfortunately this issue does not appear to cause an exception which we can catch and troubleshoot. I was able to log the issue and determine that it seems to be occurring after successfully showing the report form.

I have also reviewed this pdf on the issue, Load Report Failed troubleshooting, but was unable to resolve it by ensuring that we were disposing of the form correctly.

Is there any sort of Crystal Reports logging that might be able to give us more information on this issue?

Thank you in advance,

- Jesse

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Jesse and welcome to SCN

I would like to know the version of CR you are using (looking at the version of the crpe32.dll may be best). Check to see that the same version is used on DEV and deployed systems, but do let me know the version.

Also, let me know the version of .NET and if this is a web or a win app.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Hi Ludek,

     Thank you for your quick response, and I apologize for my own delay. Good news however, we believe we found the cause of our issue, and I just wanted to share it here in the off chance that someone else is running into the same issue.

     So it seems that the problem occurred so intermittently because the problem we were running into was caused when we attempted to close our crystal reports form before the OnShown event had completed. This was happening because, as I mentioned in my initial posting, we were caching a crystal reports form for speed, and were calling the show and close function back to back.

     We were able to use SychLock to ensure that these two events executed on the same thread, and this seems to have resolved the issue for us.

former_member183750
Active Contributor
0 Kudos

Wow, tough one to troubleshoot - as these intermittent issues usually are.

Many thanks for sharing the solution.

- Ludek

Answers (0)