2 Replies Latest reply: May 12, 2017 10:35 AM by Marcel Hug RSS

    Changing Task Names

    Francois Wiid

      If you have QlikView Server without Publisher, I suspect it's possible to change the name of your reload tasks.

      I've done this successfully so far and have not seen any negative impacts. Not sure if anyone sees a problem with this...?

       

      QlikView Server 11.2 SR5 was used.

       

      1. Stop QlikView Management & Distribution services.
      2. Open the following file with notepad: C:\ProgramData\QlikTech\ManagementService\QVPR\SourceDocument.xml
      3. Look for the document name of the task you wish to change. Make note of that "ID" value (not FolderID or DistributionServiceID)
      4. Give yourself write permission to the following file and edit it with notepad: C:\ProgramData\QlikTech\ManagementService\QVPR\DocumentTask.xml
      5. Look for the SourceDocumentID that matches the ID from the SourceDocument xml and change that TaskName to what you would prefer.
      6. Repeat steps 3 & 5 for each task to change.
      7. Save the DocumentTask.xml file and start QlikView Management & Distribution services.

       

      The main reason for this was to be able to see which tasks are for which documents in QMC.

       

      If you have the same qvw name in different folders, then in QMC - Status - Tasks, it will look like this:

      Reload of Finance.qvw

      Reload of Finance.qvw

      Reload of Finance.qvw

       

      Being able to change the task name will allow you clarify which app in which folder will be reloaded:

      Reload of Region1\Finance.qvw

      Reload of Region2\Finance.qvw

      Reload of Region3\Finance.qvw

       

      This should not be a problem for most sites, because you should not give QlikView apps, in different folders, the same file name.

        • Re: Changing Task Names
          Jim Chan

          Hi,

           

          Is that your workaround??

           

          Rgds,

           

          Jim

          • Re: Changing Task Names
            Marcel Hug

            Hi

            If you have Publisher installed in addition (and thus DistributionService running),
            you can change the task names in all XML-taskfiles in "C:\ProgramData\QlikTech\DistributionService\Tasks" with this .vbs file:


            Set objShell = CreateObject("WScript.Shell")
            Set fso      = CreateObject("Scripting.FileSystemObject")
            Set oFldr    = fso.GetFolder("C:\ProgramData\QlikTech\DistributionService\Tasks\")

            old_taskname = "<your old taskname>"
            new_taskname = "<your new taskname>"

            for each ofile in oFldr.Files
            filename = "C:\ProgramData\QlikTech\DistributionService\Tasks\" & ofile.Name
            if (fso.GetFile(filename).size <> 0 and instr(1,filename,".xml") >= 1) then
                Set tf=fso.OpenTextFile(filename, 1)
                ts=tf.ReadAll
                tf.close
                Set tf=fso.OpenTextFile(filename, 2)
                tf.Write replace(ts, old_taskname, new_taskname)
                tf.close
                Set tf = Nothing
            end if
            next

            Set fso     = Nothing
            Set objFile = Nothing


            Before executing the file, stop all QlikView Services first as mentioned above.

             

            Marcel