2 Replies Latest reply: Apr 15, 2015 8:51 AM by Magnus Berg RSS

    Init of QDF fails in Qlik Sense 1.1.0

    Vegar Lie Arntsen

      I experience the init.qvs to fail when using it in Sense. I'm using Sense 1.1 together with QDF 1.4.1. I did not have this problem in October using an earlier version of both Sense and QDF.

       

      I have circled the problem down to an include in init.qvs

      // Special check, Qlik Sense is using LIB's and do not need a root folder
      if '$(vG.RootPath)'='' and not lower(left(trim('$(vG.BasePath)'),6))='lib://'  then
        $(Include=$(vG.SubPath)\3.LoadContainerMap.qvs);
         call LoadContainerMap('$(vG.BaseVariablePath)\ContainerMap.csv','','$(vG.BasePath)');
      endif
      

      It feels like Sense are evaluating the Include-statement even when the IF statement i false and should not run. A walkaround is to replace the vG.SubPath with a temp variable that is inital defined Sense friendly and inside the IF statement corrected.

      // Special check, Qlik Sense is using LIB's and do not need a root folder
      LET _vL.SubPath = '$(vG.BasePath)'; //Sense friendly path
      if '$(vG.RootPath)'='' and not lower(left(trim('$(vG.BasePath)'),6))='lib://'  then
        LET _vL.SubPath = '$(vG.SubPath)'; //QlikView friendly path
        $(Include=$(_vL.SubPath)3.LoadContainerMap.qvs);
        call LoadContainerMap('$(vG.BaseVariablePath)\ContainerMap.csv','','$(vG.BasePath)');
      endif
      LET _vL.SubPath = ;
      

       

      I hope to see a fix for this error soon in Sense, but hopefully you guys will make this or a similar workaround for the QDF.

       

      Best regards

      Vegar Lie Arntsen

      QlikView and Qlik Sense consultant at egbs consulting ab

      Blogs: http://aqlik.se (English) and http://bi-effekten.se (Swedish)