<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: “The Report Application Server failed” in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338917#M2967280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is 4000 reports before failure consistent?&lt;/P&gt;&lt;P&gt;The cleanup code is overkill and probably resource intensive.  Closing/disposing the reportdocument should be sufficient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the point where the schedule kicks off, how much time elapses before errors start occurring?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;80 threadsu2026. This is possibly causing more harm than good.  I would expect a large queue with the potential for thread contention and/or deadlocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try less threading. A simple formula to use:  maxThreads =   (3 concurrent processes licensed) * (# CPUs)&lt;/P&gt;&lt;P&gt;So in this case it would be:  maxthreads = 3 x 8 = 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that this will help exceed 4000 reports and also speed up the scheduler.  I would even test performance by going down to 12 threads in this configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 22:33:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-13T22:33:13Z</dc:date>
    <item>
      <title>“The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaq-p/8338910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ASP.NET 4.0 and Crystal 2008 (v12.3) to execute Crystal reports on a scheduled basis. Everything works fine for a while and then we get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u201CThe Report Application Server failedu201D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on all the reports. The problem can only be solved by rebooting the server. I did some research but could not find any information as to the cause of the error. Has anyone encountered this before and know what the cause is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 18:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaq-p/8338910</guid>
      <dc:creator>dave_smith2</dc:creator>
      <dc:date>2011-11-18T18:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338911#M2967274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CR 2008 is not supported with framework 4.0. Only CRVS2010 is supported on this framework version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 21:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338911#M2967274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-18T21:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338912#M2967275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info on supported platforms you can refer to following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30da6fbd-7d4f-2d10-a38c-96596304586b" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30da6fbd-7d4f-2d10-a38c-96596304586b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 13:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338912#M2967275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338913#M2967276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running Windows 2008 R2, 4.0 Framework (C#), 64 Bit CR for VS2010 13.0.2 and I'm having the exact same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running 80 threads each executing a CR .rpt file.  I can process 4000 request, then all of the threads start failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 threads throws the following exception "The Report Application Server failed".  This is the 1st exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other threads throw this exception  "Invalid report file path."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 threads throw "Not enough memory for operation."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 Gig of ram.  During the running of the application, it consumes almost 1/2 gig of ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We currently do not have any other apps on this server, but plan to add more.  The server is a 8 core processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insights would be helpful.  I am starting down the path of a memory leak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My algorithm is&lt;/P&gt;&lt;P&gt;1) Load file from disk&lt;/P&gt;&lt;P&gt;2) Apply Log in info.&lt;/P&gt;&lt;P&gt;3) Apply parameters to report.&lt;/P&gt;&lt;P&gt;4) Export to MemoryStream.&lt;/P&gt;&lt;P&gt;5) Call Dispose on the ReportDocument object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what would cause the exceptions mention above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 20:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338913#M2967276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-12T20:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338914#M2967277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a win app?&lt;/P&gt;&lt;P&gt;Do you close and dispose the report's object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also refer to this&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023" target="test_blank"&gt;http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 21:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338914#M2967277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-12T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338915#M2967278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My application is a windows service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my C# class I have a finally block that does the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        private void DistroyReportDocument(ReportDocument document)&lt;/P&gt;&lt;P&gt;        {&lt;/P&gt;&lt;P&gt;            if (document == null)&lt;/P&gt;&lt;P&gt;                return;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ReportDocument crSubreportDocument;&lt;/P&gt;&lt;P&gt;            SubreportObject crSubreportObject;&lt;/P&gt;&lt;P&gt;            ReportObjects crReportObjects;&lt;/P&gt;&lt;P&gt;            TableLogOnInfo crTableLogOnInfo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Database crDatabase = document.Database;&lt;/P&gt;&lt;P&gt;            Tables crTables = crDatabase.Tables;&lt;/P&gt;&lt;P&gt;            TableLinks crLinks = crDatabase.Links;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            foreach (CrystalDecisions.CrystalReports.Engine.Table table in crTables)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                table.Dispose();&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            foreach (CrystalDecisions.CrystalReports.Engine.TableLink link in crLinks)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                link.Dispose();&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            crLinks.Reset();&lt;/P&gt;&lt;P&gt;            crLinks.Dispose();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            crTables.Reset();&lt;/P&gt;&lt;P&gt;            crTables.Dispose();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            //////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;            ////              Subreport code                      ////&lt;/P&gt;&lt;P&gt;            //////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Sections crSections = document.ReportDefinition.Sections;&lt;/P&gt;&lt;P&gt;            // loop through all the sections to find all the report objects&lt;/P&gt;&lt;P&gt;            foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in crSections)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                crReportObjects = crSection.ReportObjects;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                //loop through all the report objects in there to find all subreports&lt;/P&gt;&lt;P&gt;                foreach (ReportObject crReportObject in crReportObjects)&lt;/P&gt;&lt;P&gt;                {&lt;/P&gt;&lt;P&gt;                    if (crReportObject.Kind == ReportObjectKind.SubreportObject)&lt;/P&gt;&lt;P&gt;                    {&lt;/P&gt;&lt;P&gt;                        crSubreportObject = (SubreportObject)crReportObject;&lt;/P&gt;&lt;P&gt;                        //open the subreport object and logon as for the general report&lt;/P&gt;&lt;P&gt;                        crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        crDatabase = crSubreportDocument.Database;&lt;/P&gt;&lt;P&gt;                        crTables = crDatabase.Tables;&lt;/P&gt;&lt;P&gt;                        crLinks = crDatabase.Links;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        foreach (CrystalDecisions.CrystalReports.Engine.Table aTable in crTables)&lt;/P&gt;&lt;P&gt;                        {&lt;/P&gt;&lt;P&gt;                            crTableLogOnInfo = aTable.LogOnInfo;&lt;/P&gt;&lt;P&gt;                            crTableLogOnInfo.ConnectionInfo = null;&lt;/P&gt;&lt;P&gt;                            aTable.Dispose();&lt;/P&gt;&lt;P&gt;                        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        foreach (CrystalDecisions.CrystalReports.Engine.TableLink link in crLinks)&lt;/P&gt;&lt;P&gt;                        {&lt;/P&gt;&lt;P&gt;                            link.Dispose();&lt;/P&gt;&lt;P&gt;                        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        crLinks.Reset();&lt;/P&gt;&lt;P&gt;                        crLinks.Dispose();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        crTables.Reset();&lt;/P&gt;&lt;P&gt;                        crTables.Dispose();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.DataSourceConnections.Clear();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.DataDefinition.ParameterFields.Dispose();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.DataDefinition.Dispose();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.Database.Links.Dispose();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.Database.Dispose();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.Close();&lt;/P&gt;&lt;P&gt;                        crSubreportDocument.Dispose();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        crSubreportObject.Dispose();&lt;/P&gt;&lt;P&gt;                    }    // End if&lt;/P&gt;&lt;P&gt;                }   // End foreach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                crReportObjects.Dispose();&lt;/P&gt;&lt;P&gt;            }   // End foreach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            document.DataSourceConnections.Clear();&lt;/P&gt;&lt;P&gt;            document.ReportDefinition.Sections.Dispose();&lt;/P&gt;&lt;P&gt;            document.DataDefinition.ParameterFields.Dispose();&lt;/P&gt;&lt;P&gt;            document.DataDefinition.Dispose();&lt;/P&gt;&lt;P&gt;            document.Database.Links.Dispose();&lt;/P&gt;&lt;P&gt;            document.Database.Dispose();&lt;/P&gt;&lt;P&gt;            document.Close();&lt;/P&gt;&lt;P&gt;            document.Dispose();&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is over kill, but I got it from an earlier post in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the article.  It suggest I could be running into the default print Job limit.  I'll try editing the registry as the document suggests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting 3 different exceptions, do you think possbly they are all related?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 22:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338915#M2967278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-12T22:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338916#M2967279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other thing that can be tried is updating the printer drivers to the latest version.&lt;/P&gt;&lt;P&gt;See if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 12:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338916#M2967279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T12:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: “The Report Application Server failed”</title>
      <link>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338917#M2967280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is 4000 reports before failure consistent?&lt;/P&gt;&lt;P&gt;The cleanup code is overkill and probably resource intensive.  Closing/disposing the reportdocument should be sufficient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the point where the schedule kicks off, how much time elapses before errors start occurring?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;80 threadsu2026. This is possibly causing more harm than good.  I would expect a large queue with the potential for thread contention and/or deadlocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try less threading. A simple formula to use:  maxThreads =   (3 concurrent processes licensed) * (# CPUs)&lt;/P&gt;&lt;P&gt;So in this case it would be:  maxthreads = 3 x 8 = 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that this will help exceed 4000 reports and also speed up the scheduler.  I would even test performance by going down to 12 threads in this configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 22:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/the-report-application-server-failed/qaa-p/8338917#M2967280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T22:33:13Z</dc:date>
    </item>
  </channel>
</rss>

