Maximum Report Processing Job Limits Reached Error

Our application uses the CR .NET SDK version 13.0.3, and one of our clients is receiving this error after many users are attempting to run the same Crystal Report in our web application.  We advised them to set the following key value to -1, but that has not resolved the issue, even after a web server restart.
HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\PrintJobLimit
Is there any other configuration that needs to be changed to remove this restriction?

The value of -1 only works with CR server.
Disregard the post from Venkatesh as that would apply to CR XI R2. Not CRVS (v.13.x).
Make sure you are using .close and .dispose on the report objects as you get done with them. Typically this is the issue that causes the error.
You can also try to set the PrintJobLimit to 200 or 300. However understand that by increasing this value, you are increasing the load on the server.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • The maximum report processing jobs limit configured has been reached -Error

    I have Created a common page that has a CrystalReportViewerControl (name of this page is ShowReport.aspx). The report name and database name that required for the report is being passed in a querystring. The database connection info is being pulled from the web.config file. All of the reports that I am dealing with have dynamic parameters and the Crystal Prompt page is automatically being created by the crystal viewer for these. Everything in my application is working fine except that when I try to access any report for the 76th. time I get the following error "The maximum report processing jobs limit configured by your system administrator has been reached."
    I have already researched this error and am aware that the PrintJobLimit can be modifed to increase this limit or can be set to -1 if we need to allow unlimited connections. However doing this is not an option due to the degradation of server performance.
    The other option that I have tried is to make sure I close and dispose of the report document object on the Page_unload or the page_SavedStateComplete() however on doing so even the session variable that I am using to store the originally created reportdocument is loosing all of the values it requires to display the report. The session variable is still available i.e. it is still of type report document but it has no values for any of the properties like FileName, database etc , basically for all of those properties it show an error "Invalid File Path" when viewed in debug mode.
    I have already tried several approaches but with no luck. Every single time I close the originally created ReportDocument object I loose all the required values in the Session
    I am using Crystal Report XI R2 , .Net 2.0 and ASP.net
    Following is the code: (Any help will be highly appreciated) Thanks:
    Option Strict On
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports System.Data.SqlClient
    Imports System.IO
    Partial Class _ShowReport
    Inherits System.Web.UI.Page
    Private FechReport As ReportDocument
    Dim strSelectedDatabase As String
    Dim strReportsFolderPath As String =
    System.Configuration.ConfigurationManager.AppSettings("ReportsFolderPath").ToString()
    Dim strReportFileName As String
    Dim strReportFullPath As String
    Dim iInsertedLogId As Integer 'This variable is used to store the inserted log id for the executed report.
    Dim strConnString As String = System.Configuration.ConfigurationManager.AppSettings("ConnString").ToString()
    Dim strServerName As String = System.Configuration.ConfigurationManager.AppSettings("CR_ServerName").ToString()
    Dim strUserName As String = System.Configuration.ConfigurationManager.AppSettings("CR_UserName").ToString()
    Dim strPassword As String = System.Configuration.ConfigurationManager.AppSettings("CR_Password").ToString()
    Protected Sub Page_OnSaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete
    If IsPostBack Then
    If iInsertedLogId > 0 Then
    UpdateReportLog_ReportServedTime(iInsertedLogId)
    If Not FechReport Is Nothing Then
    FechReport.Close()
    End If
    End If
    End If
    End Sub
    Sub Page_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload
    If Not FechReport Is Nothing Then
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    End If
    End Sub
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim sRptFileName As String
    If Request.QueryString("database") "" Then
    strSelectedDatabase = Request.QueryString("database")
    Else
    Response.Write("A Valid Database has not been supplied to this page")
    Response.End()
    End If
    If Request.QueryString("ReportFileName") "" Then
    strReportFileName = Request.QueryString("ReportFileName")
    strReportFullPath = strReportsFolderPath & strReportFileName
    Else
    Response.Write("A Valid Report has not been supplied to this page")
    Response.End()
    End If
    sRptFileName = strReportFullPath
    If Not IsPostBack Then
    FechReport = New ReportDocument
    If Not FechReport Is Nothing Then
    ShowReport(sRptFileName)
    End If
    Else
    If (Session("oReportDocument") Is Nothing) Then
    FechReport = New ReportDocument
    ShowReport(sRptFileName)
    Else
    'FechReport = New ReportDocument
    'FechReport = CType(Session("oReportDocument"), ReportDocument)
    myCrystalReportViewer.ReportSource = Session("oReportDocument")
    'myCrystalReportViewer.ReportSource = FechReport
    End If
    End If
    End Sub
    Public Function ShowReport(ByVal strReportFileName As String) As Boolean
    Dim blNoErrors As Boolean = True
    Dim crDatabase As Database
    Dim crTables As Tables
    Dim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo
    FechReport.FileName = strReportFileName
    myCrystalReportViewer.ReportSource = FechReport
    crConnectionInfo = New ConnectionInfo()
    With crConnectionInfo
    .ServerName = strServerName
    .DatabaseName = strSelectedDatabase
    .UserID = strUserName
    .Password = strPassword
    End With
    Try
    crDatabase = FechReport.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    Catch ex As Exception
    Response.Write(ex.Message & ControlChars.NewLine & ex.InnerException.ToString & ControlChars.NewLine)
    Exit Function
    End Try
    Session("oReportDocument") = FechReport
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    Return blNoErrors
    End Function
    End Class

    I have looked into Caching the report document as well. However, as you mentioned in the post it, it will only be usefull when the DB and the report parameters remain the same which is not the case in our application. We have multiple identical databases and hundreds of reports. Our users have the option of using a combination of any database and any reports, each report having numerous parameters.
    Since one user can only access one report at a time. i do have cleanup code that removes the session variable used to store the reportdocument object in the page that is initially used to call the ShowReport.aspx page.
    I understand now that the CR.net SDK is only good for light reporting only. Unfortunately when we started development based on all of the articles that I gathered, I didn't anticipate running to issues like this. But I guess that's the nature of the business :-).  And hence there are people like you who go out of the way to answer these difficult questions.
    Regards,

  • The maximum report processing jobs limit configured reach

    Getting error "The maximum report processing jobs limit configured by your system administrator has been reached."
    after running a number of reports.
    The problem clears up when I issue an IISreset.
    Environment
    - Windows 2008 Server.
    - 3 x ASP .Net application using CR.Net developed using VS2005.
    - Installed full version of Crystal Reports 2008.
    I also have a full version of Crystal Reports 2008 installed on my developemnt system along with VS 2005.
    I don't understand this error. The load on the server for running reports is extremely low.  When I talked to Business Objects about the configuration he did not see any issues.
    What do I need to do to resolve this issue without having to spend a ton of money?
    Is there something I can do in code to reslove this issue?
    The other question I have is CR.NET from I gathered reading other posts is limited to 3 concurrent licenses. Can this be increased? If so, who do I contact to purchase addtional licenses?
    Regards
      Paul

    Make sure you are closing and disposing of the report objects as you get done with them:
    Dim report as New ReportDocument
    Protected Sub Page_load()
    End Sub
    Private Page_Unload()
    report.close()
    report.dispose()
    GC.Collect
    End Sub
    //C# (on form open):
    private void WebForm1_Init(object sender, System.EventArgs e)
        if (boReportDocument != null)
            boReportDocument.Close();
            boReportDocument.Dispose();
            GC.Collect();
    // C# on form close
    private void Page_Unload(object sender, EventArgs e)
            if (boReportDocument != null)
            { boReportDocument.Close();
                boReportDocument.Dispose();
                GC.Collect();
    If you don't do the above, you either run out of licenses or memory.
    The other question I have is CR.NET from I gathered reading other posts is limited to 3 concurrent licenses. Can this be increased?
    No, this can not be increased. However, you can upgrade to the CR Server which you can bump up to 20 concurrent licenses and 5 user licenses. The following may be of help:
    https://boc.sdn.sap.com/node/972
    Ludek

  • Maximum report processing jobs limit error on compile

    I have been creating an VB.NET application using VS 2005.NET Pro. I believe the version of Crystal reports is 10.0 - I think. I got the following error when I created a new report and then compiled:
    Error     1     Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041016): The maximum report processing jobs limit configured by your system administrator has been reached.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"     J:\Development\ElkRunItWorking\WholesaleReportingSys\Trunk\WholesalerReporting\rptSalesSalesmanProductMonth.rpt     1     1     WholesalerReporting
    I have looked at several threads with this error already, but they seem to be having the error when the app is running. I am just compiling and I get this error. Now,  counted the number of reports I have created and it is 15. 16 reports seems to trigger this error. What is going on and what should I do? Thanks in advance.
    Ed Cohen

    One more thing, I do not have this in my registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\CRYSTAL DECISIONS\*10.2*\REPORT APPLICATION SERVER\SERVER\PrintJobLimit
    I have looked all over the place it PrintJobLimit does not exist. Again, I am using Visual Studio.NET 2005 Pro on a Windows XP Pro machine. Thanks again.
    Ed Cohen

  • Has anyone got this error before?? The maximum report processing jobs limit

    The maximum report processing jobs limit configured by your system administrator has been reached.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: The maximum report processing jobs limit configured by your system administrator has been reached.
    Source Error:
    Line 31:         myReportDocument = new ReportDocument();
    Line 32:         string reportPath = Server.MapPath("Rev_Cat_Question_Completion.rpt");
    Line 33:         myReportDocument.Load(reportPath);
    Line 34:
    Line 35:         SetDBLogonForReport(connectionInfo, myReportDocument);
    Source File: d:\Inetpub\wwwroot\PMSART\Region_review_forms\WFSW\LV_WFSW_Form.aspx    Line: 33
    I am stumped as I don't remember reading anywhere where you had to set any configurations for a "report processing job"?
    SMA

    This is the example I am using.
    private void printReports_Unload(object sender, System.EventArgs e)
    CrystalReportViewer1.Dispose();
    CrystalReportViewer1 = null;
    if((reportDocument1 != null) && (reportDocument1.IsLoaded))
    reportDocument1.Close();
    reportDocument1.Dispose();
    Then, I stressed webapp with WAPT 4.0, and everything works perfect.
    Do you advise me to change too keyreg?
    Thanks.
    Edited by: Santiago Magaña on Nov 3, 2008 9:47 AM
    But what does
    "stressed webapp with WAPT 4.0," mean???
    SMA

  • Problem happening again. The maximum report processing jobs limit configured by your system administrator has been reached.

    We have started receiving load report failed error again in one of our production servers. This problem occurred some months ago and on that time we found that in the code reportdocument.close method was not called so we added into the code and set the print job limit to 400 and problem went away for couple of months but now it has started again.
    Load report failed.
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at AppSuite.WebApp.CrystalViewer.LoadReport(Boolean bRefresh)
       at AppSuite.WebApp.CrystalViewer.Page_Load(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    The maximum report processing jobs limit configured by your system administrator has been reached.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    This is our code
    Private m_oReportDocument As New ReportDocument
        Private ReadOnly Property ReportId() As Integer
            Get
                Return Integer.Parse(Me.Request.QueryString("r"))
            End Get
        End Property
        Private Property CacheKey() As String
            Get
                Dim sCacheKey As String = Me.Request.QueryString("ck")
                If sCacheKey Is Nothing OrElse sCacheKey.Length = 0 Then
                    sCacheKey = CStr(Me.ViewState("CacheKey"))
                End If
                Return sCacheKey
            End Get
            Set(ByVal Value As String)
                Me.ViewState("CacheKey") = Value
            End Set
        End Property
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            If Not Me.IsPostBack Then
                LoadReport()
            End If
        End Sub
        Private Sub btnPDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPDF.Click
            'Redirect to the PDF Viewer passing it the ReportId and CacheKey
            Me.Response.Redirect(String.Format(ReportHelper.PDFViewerURL, Me.ReportId, Me.CacheKey))
        End Sub
        Private Sub btnRTF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRTF.Click
            'Redirect to the RTF Viewer passing it the ReportId and CacheKey
            Me.Response.Redirect(String.Format(ReportHelper.RTFViewerURL, Me.ReportId, Me.CacheKey))
        End Sub
        Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcel.Click
            'Redirect to the Excel Viewer passing it the ReportId and CacheKey
            Me.Response.Redirect(String.Format(ReportHelper.ExcelViewerURL, Me.ReportId, Me.CacheKey))
        End Sub
        Private Sub crvMain_Navigate(ByVal source As Object, ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles crvMain.Navigate
            LoadReport()
        End Sub
        Private Sub crvMain_Search(ByVal source As Object, ByVal e As CrystalDecisions.Web.SearchEventArgs) Handles crvMain.Search
            LoadReport()
        End Sub
        Private Sub crvMain_ViewZoom(ByVal source As Object, ByVal e As CrystalDecisions.Web.ZoomEventArgs) Handles crvMain.ViewZoom
            LoadReport()
        End Sub
        Private Sub crvMain_Drill(ByVal source As Object, ByVal e As CrystalDecisions.Web.DrillEventArgs) Handles crvMain.Drill
            LoadReport()
        End Sub
        Private Sub crvMain_DrillDownSubreport(ByVal source As Object, ByVal e As CrystalDecisions.Web.DrillSubreportEventArgs) Handles crvMain.DrillDownSubreport
            LoadReport()
        End Sub
        Private Sub crvMain_ReportRefresh(ByVal source As Object, ByVal e As CrystalDecisions.Web.ViewerEventArgs) Handles crvMain.ReportRefresh
            LoadReport(True)
        End Sub
        Private Sub LoadReport()
            LoadReport(False)
        End Sub
        Private Sub LoadReport(ByVal bRefresh As Boolean)
            If Common.CouldBeMultiDB(User.Identity.Name) AndAlso TypedSession.OverrideCompany.Length > 0 Then
                Common.Settings.OverrideCompany = TypedSession.OverrideCompany
            End If
            'Get the report data
            Dim dtReport As DataTable = ReportHelper.GetReportData(Me.CacheKey, bRefresh)
            'If there is data to display bind it to the Crystal Viewer
            If dtReport.Rows.Count > 0 Then
                With m_oReportDocument
                    .Load(ReportHelper.GetReportPath(Me.ReportId))
                    .SetDataSource(dtReport)
                    .PrintOptions.PaperSize = Common.Settings.CrystalPaperSize
                End With
                crvMain.ReportSource = m_oReportDocument
            Else
                'Hide the controls and display a message if there is no data
                crvMain.Visible = False
                btnPDF.Visible = False
                btnExcel.Visible = False
                lblNoResults.Visible = True
            End If
        End Sub
        Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
            m_oReportDocument.Close()
            m_oReportDocument.Dispose()
        End Sub
    Can any one tell if we are doing anything wrong in our code. We don't use sub reports any more however we do use paging and some of our reports have 200+ pages. Also is it possible to find out print job limit and concurrent users by writing some code.
    Thanks

    I suspect it's not the code - after all it worked(?). It is much more likely that, it is the load. Remember that the report engine can only handle three concurrent requests at any one time. Also, remember that you can run out of print jobs real fast as subreports also count as print job. E.g.; say someone added a report that has 4 subreports in the detail section, the report runs a 100 records, you will be at 401 print jobs and thus over the limit. You can keep increasing the print job limit, but that means you are loading the server and eventually you will bring it down too...
    It may be time to consider, web farms or Report Application Server to scale up(?).
    Getting to the latest SP is never a bad idea either.
    And have a look at the scalability suggestions in this doc:
    Crystal Reports 2008 Component Engine Scalability
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • The maximum report processing jobs limit configured by your system has been reached.

    Hi,
    We are using Crystal report in ASP.NET (Microsoft .NET 3.5) environment for a number of years but everything went quite well.
    But recently, we have migrated to .NET 4.5 ,and started having this error.
    "The maximum report processing jobs limit configured by your system has been reached."
    As per internet search, some recommended to use the Object.dispose() approach. We have applied recently ,and it is still NOT working
    Our JobLimit in the registry on production server is 75.
    This is report display
    This is report dispose
    Seeks your technical expertise here  thanks in advance.

    See if this Article will help:
    Crystal Reports Maximum Report Processing Jobs Limit
    BTW.; do not set the JobLimit key in the registry to -1 (that is for CRS OEM edition only).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Maximum report processing jobs??

    Hi,
    I have developed a web application which uses crystal reports as its report engine. Several people have been testing and printing a particular report and now they all get 'The maximum report processing jobs limit configured by your system administrator has been reached'.
    Can someone tell me what this means and how I fix it please? Here is my code declaration:-
    Private crDatabase As CrystalDecisions.CrystalReports.Engine.Database
    Private crTables As CrystalDecisions.CrystalReports.Engine.Tables
    Private crTable As CrystalDecisions.CrystalReports.Engine.Table
    Private crxFormulaFields As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
    Private crxFormulaFields_A As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
    Private crxFormulaFields_B As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
    Private crxFormulaFields_C As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
    Private crxFormulaFields_D As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
    Private crxFormulaField As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition
    Many Thanks,
    Roger

    This error is thrown when the CR print engine reaches its limit of 75 print jobs.
    As Don has suggested, try below options
    - Use HTTP sessions to store report objects and reuse them.
    - Clear your %TEMP% folder.
    - Use CR cleanup code, close and Dispose methods.
    for more info see below doc.
    http://scn.sap.com/docs/DOC-21533
    - Bhushan

  • When launch CR 2008, hit "Maximum report processing jobs limit configured."

    Hi
    Encountered Error Message when trying to launch Crystal Report 2008 via Windows Internet Explorer.
    Server Error in '/CRReports Application.
    The maximum report processing jobs limit configured by your system administrator has been reached. 
    I really appreciate your feedback.
    Jenny Heng

    hi,
    As per my understanding, when you are trying to open a Crystal report from Infoview, error occured.
    If so, then logon to CMC, click on Servers, choose 'CrystalReportsProcessingServer'.
    Right click and view server properties.
    Check for the option 'Maximum Cocurrent jobs' and set it appropriately.
    Regards,
    Vamsee

  • The maximum report processing jobs limit configured by your system administ

    I have Created a common page that has a CrystalReportViewerControl (name of this page is ShowReport.aspx). The report name and database name that required for the report is being passed in a querystring. The database connection info is being pulled from the web.config file. All of the reports that I am dealing with have dynamic parameters and the Crystal Prompt page is automatically being created by the crystal viewer for these. Everything in my application is working fine except that when I try to access any report for the 76th. time I get the following error "The maximum report processing jobs limit configured by your system administrator has been reached."
    I have already researched this error and am aware that the PrintJobLimit can be modifed to increase this limit or can be set to -1 if we need to allow unlimited connections. However doing this is not an option due to the degradation of server performance.
    The other option that I have tried is to make sure I close and dispose of the report document object on the Page_unload or the page_SavedStateComplete() however on doing so even the session variable that I am using to store the originally created reportdocument is loosing all of the values it requires to display the report. The session variable is still available i.e. it is still of type report document but it has no values for any of the properties like FileName, database etc , basically for all of those properties it show an error "Invalid File Path" when viewed in debug mode.
    I have already tried several approaches but with no luck. Every single time I close the originally created ReportDocument object I loose all the required values in the Session
    I am using Crystal Report XI R2 , .Net 2.0 and ASP.net
    Following is the code: (Any help will be highly appreciated) Thanks:
    Option Strict On
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports System.Data.SqlClient
    Imports System.IO
    Partial Class _ShowReport
        Inherits System.Web.UI.Page
        Private FechReport As ReportDocument
        Dim strSelectedDatabase As String
        Dim strReportsFolderPath As String =
    System.Configuration.ConfigurationManager.AppSettings("ReportsFolderPath").ToString()
        Dim strReportFileName As String
        Dim strReportFullPath As String
        Dim iInsertedLogId As Integer 'This variable is used to store the inserted log id for the executed report.
        Dim strConnString As String = System.Configuration.ConfigurationManager.AppSettings("ConnString").ToString()
        Dim strServerName As String = System.Configuration.ConfigurationManager.AppSettings("CR_ServerName").ToString()
        Dim strUserName As String = System.Configuration.ConfigurationManager.AppSettings("CR_UserName").ToString()
        Dim strPassword As String = System.Configuration.ConfigurationManager.AppSettings("CR_Password").ToString()
        Protected Sub Page_OnSaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete
            If IsPostBack Then
                If iInsertedLogId > 0 Then
                    UpdateReportLog_ReportServedTime(iInsertedLogId)
                    If Not FechReport Is Nothing Then
                        FechReport.Close()
                    End If
                End If
            End If
        End Sub
        Sub Page_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload
            If Not FechReport Is Nothing Then
                'FechReport.Close()
                'FechReport.Dispose()
                'GC.Collect()
            End If
        End Sub
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim sRptFileName As String
            If Request.QueryString("database") <> "" Then
                strSelectedDatabase = Request.QueryString("database")
            Else
                Response.Write("A Valid Database has not been supplied to this page")
                Response.End()
            End If
            If Request.QueryString("ReportFileName") <> "" Then
                strReportFileName = Request.QueryString("ReportFileName")
                strReportFullPath = strReportsFolderPath & strReportFileName
            Else
                Response.Write("A Valid Report has not been supplied to this page")
                Response.End()
            End If
            sRptFileName = strReportFullPath
            If Not IsPostBack Then
                FechReport = New ReportDocument
                If Not FechReport Is Nothing Then
                    ShowReport(sRptFileName)
                End If
            Else
                If (Session("oReportDocument") Is Nothing) Then
                    FechReport = New ReportDocument
                    ShowReport(sRptFileName)
                Else
                    'FechReport = New ReportDocument
                    'FechReport = CType(Session("oReportDocument"), ReportDocument)
                    myCrystalReportViewer.ReportSource = Session("oReportDocument")
                    'myCrystalReportViewer.ReportSource = FechReport
                End If
            End If
        End Sub
        Public Function ShowReport(ByVal strReportFileName As String) As Boolean
            Dim blNoErrors As Boolean = True
            Dim crDatabase As Database
            Dim crTables As Tables
            Dim crTable As Table
            Dim crTableLogOnInfo As TableLogOnInfo
            Dim crConnectionInfo As ConnectionInfo
            FechReport.FileName = strReportFileName
            myCrystalReportViewer.ReportSource = FechReport
            crConnectionInfo = New ConnectionInfo()
            With crConnectionInfo
                .ServerName = strServerName
                .DatabaseName = strSelectedDatabase
                .UserID = strUserName
                .Password = strPassword
            End With
            Try
                crDatabase = FechReport.Database
                crTables = crDatabase.Tables
                For Each crTable In crTables
                    crTableLogOnInfo = crTable.LogOnInfo
                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
                    crTable.ApplyLogOnInfo(crTableLogOnInfo)
                Next
            Catch ex As Exception
                Response.Write(ex.Message & ControlChars.NewLine & ex.InnerException.ToString & ControlChars.NewLine)
                Exit Function
            End Try
            Session("oReportDocument") = FechReport
            'FechReport.Close()
            'FechReport.Dispose()
            'GC.Collect()
            Return blNoErrors
        End Function
    End Class

    please post your question in the Business Onjects SDK Application Development Forums.

  • Maximum report processing jobs limit - Crystal report with XI R2 environmen

    Team
       My customer is facing the following error at XI R2 Environment...
    The maximum report processing jobs limit configured by your system administrator has been reached.
    To replicate  this issue  at my development environment,
    1)  I change the RAS maximum concurrent processing limit to 1 but no luck
    2) I changed the crystal report job server Maximum Concurrent processing limit to 1 but no luck
    3) i changed the register setting to HKEY_LOCAL_MACHINE\SOFTWARE\CRYSTAL DECISIONS\10.0\REPORT APPLICATION SERVER\SERVER\PrintJobLimit = 1 there is no luck
    Kindly let me know which service i need to change to replicate this message (The maximum report processing jobs limit configured by your system administrator has been reached).   Looking your expertise kind suggession and help.
    I am opening more than 10 reports, but i could not able to get the error message..
    Thx
    Srini
    Edited by: srinivasan rangaswami on Aug 12, 2011 1:08 PM
    Edited by: srinivasan rangaswami on Aug 12, 2011 1:10 PM

    Harald
    we are using the following link to view the report via Portal application and the crystal report version is Crystal Report XI
    http://server1.ser.lan:8080/businessobjects/enterprise115/desktoplaunch/opendoc/CrystalReportViewer.jsp
    parameter is passing like this to the portal
    http://server1.ser.lan:8080/businessobjects/enterprise115/desktoplaunch/opendoc/view_report_custom_params.jsp?id=7654
    Best
    Srini

  • The maximum report processing jobs limit configured by your system ...

    Hi,
    I'm a developer with WXP, VS2003 and CR2008, Framework 1.1.
    I have a message from my server (W2003): "The maximum report processing jobs limit configured by your system administrator has been reached":
    What's the matter?
    The server has installed redistributable of CR2008.
    Thanks.

    I solved it in Page Unload, doin' this:
    private void printReports_Unload(object sender, System.EventArgs e)
                    CrystalReportViewer1.Dispose();
                    CrystalReportViewer1 = null;
         if((reportDocument1 != null) && (reportDocument1.IsLoaded))
              reportDocument1.Close();
              reportDocument1.Dispose();
    Then, I stressed webapp with WAPT 4.0, and everything works perfect.
    Do you advise me to change too keyreg?
    Thanks.
    Edited by: Santiago Magaña on Nov 3, 2008 9:47 AM

  • License and Maximum Report Processing Jobs Limit  error how to overcome

    HI,
    I am using Crystal Reports  XI  Release 2.  .Net 2010 c# web forms and published  IIS7  windows serer 2008 . everyday i  am getting the above error and i have tried to close and dispose the objects , but some  its not working correctly and when i am checking the temp folder i can see  the reports which is not disposed. as soon as i restarted the iis its working , how i can overcome the challenges .
    if anybody can help this matter i will be very obliged.
    Attached the aspx pages
    Message was edited by: Ludek Uher

    Dear Mr.Ludek ,
    Thank you so much and appreciate your crystal clear information's and suggestions .
    I had gone through the discussions and applied the coding corrections  , however  i am unable to  dispose all the  report objects ( Some times keeping the files ). because if am checking temp files i can see the pending files which is not Disposed,
    if i wanted to get the support what is the procedure And kindly give me the examples link  then i can cross the codes which i have written is correct or not.
    if you don't mind kindly guide me since this issue is going to affect my career
    This is my code i am  using
    Setp 1  :
    // page load
       protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
                ShowPOPrint ();
            else
                if (Request.Params["__EVENTTARGET"] != null)
                    if (Request.Params["__EVENTTARGET"].Equals("CLOSE_REPORT_OBJECT"))
                        string ret = Request.Params["__EVENTARGUMENT"];
    status = true ;
    Step 2
    // function for initialize the    
    private void ShowPOPrint()
            DataSet Temp = new DataSet();
              ReportDocument objrptdoc; 
               if (Session["REPORT_KEY"] != null)
                    objrptdoc = (ReportDocument)Session["REPORT_KEY"];
                    objrptdoc.Close();
                    objrptdoc.Dispose();
                    Session.Remove("REPORT_KEY");
                    Session.Remove("REPORT_NAME");
            // Create a new report object
            objrptdoc = new ReportDocument(); 
    objrptdoc.Load(Reportclass.RptFileName);  
            Temp = Reportclass.DataSetReport; 
            objrptdoc.SetDataSource(Temp);
            Session["Objrptdoc"] = objrptdoc;
            Session.Add("REPORT_KEY", objrptdoc);
            Session.Add("REPORT_NAME", Reportclass.RptFileName);
            crptReport.DisplayGroupTree = false;
            crptReport.ReportSource = objrptdoc;
            crptReport.DataBind();
            crptReport.DisplayPage = true;
            Temp = null;
    Step 3 : //
    // using for paging
    protected override void OnInit(EventArgs e)
            if (Session["Objrptdoc"] != null)
                objrptdoc = (ReportDocument)Session["Objrptdoc"];
                crptReport.ReportSource = objrptdoc;
    Step 4 // closing the report form and calling post back event to dispose the object
      protected void Page_Unload(object sender, EventArgs e)
             try
                 if (status == true)
                     if (this.crptReport != null)
                         this.crptReport.Dispose();
                         this.crptReport = null;
                     if (objrptdoc != null)
                         objrptdoc.Close();
                         objrptdoc.Dispose();
                         GC.Collect();
            catch(Exception ex)
    //-- SCRIPT IS USING TO CALL THE POST BACK EVENT TO  TRIGGER THE PAGE UNLOAD AND DISPOSE THE OBJECT .
    <script language="javascript" type="text/javascript">
        window.onbeforeunload = function () {
            __doPostBack('CLOSE_REPORT_OBJECT', '');
            confirmComplete();
            //alert("Report Generate PDF/Closing");
         function confirmComplete() {
             // alert("confirmComplete");
             var answer = confirm("Are you sure you want to continue");
             if (answer == true)
                 return true;
             else
                 return false;
    </script>
    PENDING FILES IMAGES
    you can see 14 , one file is pending , 15 the, and today is too much .
    Thank you so much , kindly help me as i am going to big trouble .

  • Maximum Report Processing Jobs Limit

    hello good:
           I have a question I got a message that reports the limit has been reached. there any way that reports are closed in any better shape?
    I will be optimal to separate the close () a dispose ()?
    or a GC.Collect ()?
    or a way to have a reporting accountant?
    please reply thanks
    ps: sorry for my basic English

    make sure you call:
    reportClientDocument.close() in all workflows in your code.
    Also if  #of print jobs for RAS service are around 50-75 you can try increasing them or even better add another RAS service. 1 report doesn't mean 1 print job, 1 report will consume a number of print jobs 1 foe main report, 1 for each subreport, 1cfor printing, 1 for exporting etc. depending on what you do in your code.
    You could possibly be overwhelming 1 RAS service and add another.

  • The maximum report processing jobs limit configured by your system admin...

    Hi There,
    I have two questions about this error.
    1) How do you get rid of it after it happened.  I had to reboot.
    2) What's the best way to dispose of the reportdocument object.
    I tried the code below, but it doesn't work:
        protected void Page_UnLoad(object sender, EventArgs e)
            rdoc.Close();
            rdoc.Dispose();
            GC.Collect();
    Thanks for help on previous issues.
    Paul O

    Thanks for both replies.
    I don't have the opportunity to change the registry on the server.  The Page_Unload code seems to be the key.  The problem is when I click next page I get the error:
    "Object reference not set to an instance of an object." above the report viewer.
    Here's my Page_Init:
        protected void Page_Init(object sender, EventArgs e)
            if (!Page.IsPostBack)
                ScriptManager mstScriptManager;
                mstScriptManager = (ScriptManager)Master.FindControl("ScriptManager1");
                mstScriptManager.RegisterPostBackControl(CRViewer);
            //pbo 9/19/2008
            if (this.Page.IsPostBack)
                if (Session.Contents["rdoc"] != null)
                    //added sap suggesion
                    rdoc = (ReportDocument)Session.Contents["rdoc"];
                    CRViewer.ReportSource = rdoc;
    I load the report in Page_Load, but do not reload it when on postback:
                if (reportType == "ALL" & !IsPostBack)
                    rdoc = (ReportDocument)Session["rdoc"];
                    if (rdoc == null)
                        rdoc = new ReportDocument();
                    else
                        rdoc.Close();
                        rdoc.Dispose();
                        rdoc = new ReportDocument();
                    reportPath = Server.MapPath("reportNamerpt");
                    rdoc.Load(reportPath);
                    rRisksTableAdapters.Risks_ALLTableAdapter cta = new rRisksTableAdapters.Risks_ALLTableAdapter();
                    rdoc.SetDataSource((DataTable)cta.GetData(Convert.ToInt16(SessionManager.LOGGED_IN_USER_COMPANYID())));
                    rdoc.SetDatabaseLogon(ConfigurationManager.AppSettings["username"].ToString(), ConfigurationManager.AppSettings["pwd"].ToString());
                    Session["rdoc"] = rdoc;
                    CRViewer.ReportSource = rdoc;
    I think I am following all the standard stuff but am obviously missing something.

Maybe you are looking for