Data Connection not closed in report with ondemand subreport

I have written a report that contains an on-demand subreport. The data connection is a JDBC database connection. When viewing the report in InfoView and monitoring my database connections, I noticed that the data connection stays open, even after the report has been closed in InfoView. In fact, the connection persists after the viewing user has logged off of InfoView. The data connection does not close until the designated 20 minutes to keep idle connections open has expired (a setting in the Page Server).

I thought the expected behavior was for the connection to close after the main report data had been fetched, and then reopen for any subreport requests. Even if this is not the case, the data connection should at least close after the report has been closed in InfoView.

Has anyone else encountered this problem? It is an issue because we have a limited number of client driver licences, and these data connections can not stick around for 20 minutes until BOE decides to end them.


brothhaa (BOB member since 2007-02-05)

Welcome to B:bob:B!

[Moderator Note: Moving from General Discussion to Crystal XI.]


MichaelWelter :vatican_city: (BOB member since 2002-08-08)

Were you able to solve this issue?

I am experienceing the same issue?
Anybody else has any answer to this.

Appreciate your prompt help.


jhartman (BOB member since 2006-02-08)

I have not found any assistance for this issue nor have I found a solution myself. I’d say it’s just lazy connection management by BOE.

I haven’t found any tools or anything that would let me view open database connections that BOE is keeping, either. I also haven’t been able to come up with any CMS queries that would allow me to view data source connections. Any of these things would be helpful.


brothhaa (BOB member since 2007-02-05)

So we are on the same boat :slight_smile:

Actually, in my case it is happening only with one report. Every time the report runs through InfoView, two new lazy connections are created and gets multiplied on every run.

So just wondering why only on specific report and not all other reports.
:hb:


jhartman (BOB member since 2006-02-08)

Does the report that you are seeing this behavior with contain an on-demand subreport? I have only observed the problem on such reports.


brothhaa (BOB member since 2007-02-05)

Does anyone have a solution to this issue? I’m running on demand crystal reports against a universe. Some reports contain sub-queries while others do not. Eventually the reports start to fail and have to restart the page server.

BO XI R2 SP3


JeffL (BOB member since 2006-11-22)

I’m having similar problems in BO. Found this thread if it helps anyone…


rob_bo :uk: (BOB member since 2005-08-04)

Still no solution?

I am running CR 2008 in offline viewer through .NET code. Facing same issue of DB connections being active even after report viewer is closed.

Any idea what can fix this?


j_sachin_j :india: (BOB member since 2010-09-13)