5 Replies Latest reply: Feb 20, 2013 1:36 PM by vikasbhasin RSS

    Loop and reduce error

    Björn Miessen

      I have a QlikView document which I am trying to distribute by means of a QlikView server task. Part of this task is looping and reducing the document based on a document field. Unfortunately this fails with the following error log:

       

      (2012-01-11 10:24:40) Information: Commencing ReduceData
      (2012-01-11 10:24:40) Error: Could not run ReduceData. Exception=QVBWrapper.Exceptions.ReduceAndSaveFailedException: Failed to reduce and save document: C:\ProgramData\QlikTech\DistributionService\1\temp\61758d99-c74f-4290-82b2-fda854331ca5\document.qvw
      (2012-01-11 10:24:40) Error: at QVBWrapper.Document.ReduceAndSave(ILogBucket logBucket, String savePath, Boolean checkoutReducedDocument)
      (2012-01-11 10:24:40) Error: at QVBWrapper.Document.ReduceData(ILogBucket logBucket, Boolean reduce, String savePath, Boolean checkoutReducedDocument, Boolean save)
      (2012-01-11 10:24:40) Error: Failed to generate QVW files.. Exception=System.ArgumentException: Empty path name is not legal.
      (2012-01-11 10:24:40) Error: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
      (2012-01-11 10:24:40) Error: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
      (2012-01-11 10:24:40) Error: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
      (2012-01-11 10:24:40) Error: at QVBWrapper.Document.GetStream(ILogBucket i_LogBucket, eDocumentType i_DocumentType, String i_URL, Boolean i_ShowToolBar, String i_ReportID)
      (2012-01-11 10:24:40) Error: Failed to generate QVW File package.. Exception=System.NullReferenceException: Object reference not set to an instance of an object.
      (2012-01-11 10:24:40) Error: at QDSMain.DistributeHelper.GrabQVWFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)
      (2012-01-11 10:24:40) Information: Deleting temporary files.
      (2012-01-11 10:24:40) Information: Closing the document.

       

      After contacting QlikView support it became clear the cause of the error is the availability of input fields in the document. So looping and reducing a document with input fields does not work and this appears to be a known bug of version 11 (Bug ID 44306). Currently there is no solution for it and they are working on it. As a workaround you could disable/remove the input fields for now.