cancel
Showing results for 
Search instead for 
Did you mean: 

A Crystal Reports job failed because a free license could not be obtained..

Former Member
0 Kudos

Hi,

am getting this error : "A Crystal Reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online "..

The application was working fine all day but suddenly started throwing above error.. I think this error started when i tried to debug one particluar crystal report which was taking a lot of time to load and throwing error "Login Failed"..

I tried to google and found below (at this site : http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_21434358.html)

"How are you closing the reports?

Crystal has a habit of keeping the license and database connection open until explicitly closed or the app is terminated.

"

Can anyone pls tell me how to close reports?

Thanks to help...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please apply the code given below in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually.

boReportDocument.Close(); 
boReportDocument.Dispose(); 
GC.Collect(); 

Note: boReportDocument is the object of ReportDocument.

This code disposes the report object after using it.

download sample code click [here|https://boc.sdn.sap.com/codesamples].

You can also take help from [Dev library|https://boc.sdn.sap.com/node/7770]

Hope that helps!!

Regards,

Amit

Answers (1)

Answers (1)

0 Kudos

Hi Mohammed,

You should search this forums, the link you gave requires an account to be setup, if not, the replies cannot be read.

Look at this link on our site which explains why:

https://forums.sdn.sap.com/click.jspa?searchID=17446928&messageID=5850480

Thank you

Don

Former Member
0 Kudos

Hi There

After the frustration and being exhausted in searching for more than a month, I finally found a solution to my problem and I wanted to share it with you.

1- All what I had done I download the Crystal Reports 10 Service Pack 6 from here http://resources.businessobjects.com/support/communitycs/FilesAndUpdates/cr10win_en_sp6.zip

2- Then I install it.

3- After that I run the web application and generate a report

IT IS WORKING !!

I hope it helps __

former_member183750
Active Contributor
0 Kudos

Please note that the answer posted by Nina (for which I am very grateful, though surprised...) is specific to CR 10. This is why it is so important for everyone to specify the version of CR they are using. These are basics. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

Step 2 Asking Your Question; Provide Enough Information

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup