<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Serge&#039;s Technology View &#187; long running query</title>
	<atom:link href="http://blog.dragonsoft.us/tag/long-running-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dragonsoft.us</link>
	<description>Talk about Technologies, Software Architecture and Management</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:43:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Expiration of CrystalReport Viewer pages with long running queries</title>
		<link>http://blog.dragonsoft.us/2009/06/23/expiration-of-crystalreport-viewer-pages-with-long-running-queries/</link>
		<comments>http://blog.dragonsoft.us/2009/06/23/expiration-of-crystalreport-viewer-pages-with-long-running-queries/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 19:58:14 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[crystal reports viewer]]></category>
		<category><![CDATA[crystalreportviewer]]></category>
		<category><![CDATA[long running query]]></category>
		<category><![CDATA[page expired]]></category>
		<category><![CDATA[timeout]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/?p=988</guid>
		<description><![CDATA[Wow! It worked&#8230; I continue my journey with Crystal Reports Viewer (CRV) inside ASP.Net pages. Topic of this post is to discuss problems and solutions related to long running queries in CRV. I would like to thank Daniel Paulsen from &#8230; <a href="http://blog.dragonsoft.us/2009/06/23/expiration-of-crystalreport-viewer-pages-with-long-running-queries/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wow! It worked&#8230;</p>
<p>I continue my journey with Crystal Reports Viewer (CRV) inside ASP.Net pages.<br />
Topic of this post is to discuss problems and solutions related to long running queries in CRV.</p>
<p>I would like to thank Daniel Paulsen from SAP team for his help resolving the issue discussed below.</p>
<p><strong>What are we talking about here?</strong></p>
<p>As it usually happens at some point there is to much data/not optimal query/broken indexes/etc and it is takes significant time to return a result for CR report. As a result ASP.Net page with CRV start to throw errors, acts erratically, and overall strange.</p>
<p>Since we know that it is ASP.net and CRV uses page state and session information then we have usual suspects - <a href="http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx" target="_blank">session timeout</a> and <a href="http://msdn.microsoft.com/en-us/library/e1f13641.aspx" target="_blank">execution timeout</a>.</p>
<p>Easy? Not so fast&#8230; Lets time our query &#8211; if it is more then 10 but less then 20 minutes then reason is not an ASP.Net timeout, but CR Engine timeouts.</p>
<p><strong>Crystal Reports Engine Timeouts</strong></p>
<p>Aside from timeouts imposed by .net infrastructure, there are two others which are introduced by Crystal Report itself.</p>
<p><strong>Symptoms:</strong></p>
<ul>
<li>Error similar to &#8216;Request timed out because there has been no reply from the server in N ms&#8217;</li>
<li>First Page of the report is displayed but attempt to go to the next page gives JS error related to invalid object ID</li>
<li>If report require parameter entry, they are requested again</li>
</ul>
<p><strong>Cause:</strong></p>
<p>Crystal Reports by default has a timeout of 10 minutes (600,000 ms) before deciding that no data is returned by the query.<br />
Depend on how code behind is implemented for the report page, timeout error may cause different problems and be hidden.</p>
<p><strong>Solution:</strong></p>
<p>Per Daniel&#8217;s suggestion I have changed the following settings to a bigger number and it did solve the problem for me</p>
<pre class="brush: plain; title: ; notranslate">HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Client SDK\CorbaAdapter\WaitReplyTimeout = 600000
and
HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\EnterpriseRequestTimeout = 600000</pre>
<p><strong>Final Note:</strong></p>
<p>There are other settings which are allowed to be set for the CR engine as described in <a href="http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm" target="_blank">Developer&#8217;s Guide for CR 2008</a> under &#8220;<strong>Configuring your Web.Config file</strong>&#8220;. It worth to know about some of them.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2009/06/23/expiration-of-crystalreport-viewer-pages-with-long-running-queries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

