2 Replies Latest reply: Jan 31, 2018 5:06 PM by test test RSS

    Qlikview job failed with ERROR

    jayabaltn

      Hi all,

       

      My Qlikview job has been failed with the below error for the last one week that too with particular time ( every day 6 pm). Rest it runs fine.

       

      System.Net.Mail.SmtpException: Failure sending mail. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark) at System.Threading.Thread.Start() at System.Net.TimerThread.Prod() at System.Net.TimerThread.TimerQueue.CreateTimer(Callback callback, Object context) at System.Net.ServicePoint..ctor(String host, Int32 port, Queue defaultIdlingQueue, Int32 defaultConnectionLimit, String lookupString, Boolean userChangedLimit, Boolean proxyServicePoint) at System.Net.ServicePointManager.FindServicePoint(String host, Int32 port) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at XSMain.SMTPServerResource.SendMail2(Int32 i_ParentLogID, SmtpClient i_SmtpClient, MailMessage i_MailMessage)

      Thanks,

      JB

       

        • AW:Qlikview job failed with ERROR
          Joachim Rogginer

          Hi,

          as far as I can see from the failure, obviously a mail cannot be sent (SmtpException). Does the job send any mails? What does the job do?

          Rgds,
          Joachim

          • Re: Qlikview job failed with ERROR
            test test

            Hello, please see Article 000045598 in Qlik's Support Portal.

             

            The error " System.OutOfMemoryException " seems to happen because the process is unable to find a large enough section of *contiguous* unused pages in its virtual address space to do the requested mapping (not because of the total amount of memory, but rather contiguous unused space), or because a directory or template path is no longer valid. This may cause a memory leak. If the logs do not show an error related to "output producer", than it's usually because of the former.

             

            The error "Error: QlikView NPrinting can't find a supported reporting output producer for the file" in the NPrinting logs demonstrates that there is a directory or template path that is no longer valid, or there is a duplicate template, as these will cause memory leaks... and the customer should update the path.

             

            If you encounter an issue where the NPrinting execution remains in a running status forever, this was a bug (OP-5692) in NPrinting, and the resolution is to upgrade to the November 2017 release or newer. In summary, the report preview execution remained in "running" status forever due to an un-handled and not logged OutOfMemoryException error in Qlik NPrinting Scheduler, which is fixed, and an NPrinting (and QlikView/Qliksense) update to the latest version should be performed.

             

            If the QlikView services are crashing when NPrinting tasks are executed, then it's likely that your QlikView documents are extremely large, charts are maximized, etc... so QlikView Server uses a lot of machine resources and it goes down right when the request from NPrinting is sent. You should try to schedule NPrinting when the Server has more resources. NPrinting uses the QlikView Desktop APIs. If the QlikView Server can't get back to QlikView Desktop, NPrinting shows the error.