<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Loading qlikvier with open files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790083#M1210519</link>
    <description>&lt;P&gt;Depending on the script, it could be one of two things:&lt;/P&gt;&lt;P&gt;1) The file is blocked for reading while it is open&lt;/P&gt;&lt;P&gt;2) You are reading e.g. all files in the folder, and when the file is open a temporary file is created which Qlik can't read&lt;/P&gt;&lt;P&gt;I would guess the second option is more likely, but either could be the problem.&lt;/P&gt;&lt;P&gt;For the first issue, there's nothing much you can do except try and get your sysadmins to make the file readable when open. For the second issue, you can tell it to only read specific files (ones not starting with ~, which designates a temporary file, for example), or you can use Set Errormode=0; to tell Qlik to ignore issues and move to the next file.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 14:38:52 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-03-10T14:38:52Z</dc:date>
    <item>
      <title>Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790080#M1210518</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am setting up a very simple qlikview, what it does is load excel files, the script is not complicated and works correctly. It only fails if one of the files is open.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you think of the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yolanda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790080#M1210518</guid>
      <dc:creator>yaguilej</dc:creator>
      <dc:date>2021-03-10T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790083#M1210519</link>
      <description>&lt;P&gt;Depending on the script, it could be one of two things:&lt;/P&gt;&lt;P&gt;1) The file is blocked for reading while it is open&lt;/P&gt;&lt;P&gt;2) You are reading e.g. all files in the folder, and when the file is open a temporary file is created which Qlik can't read&lt;/P&gt;&lt;P&gt;I would guess the second option is more likely, but either could be the problem.&lt;/P&gt;&lt;P&gt;For the first issue, there's nothing much you can do except try and get your sysadmins to make the file readable when open. For the second issue, you can tell it to only read specific files (ones not starting with ~, which designates a temporary file, for example), or you can use Set Errormode=0; to tell Qlik to ignore issues and move to the next file.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790083#M1210519</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-10T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790459#M1210575</link>
      <description>Hello, thank you very much for your answer.&lt;BR /&gt;In principle, it would be the second option, although it does not work since even if the error appears, it does not reload the file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790459#M1210575</guid>
      <dc:creator>yaguilej</dc:creator>
      <dc:date>2021-03-11T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790461#M1210577</link>
      <description>&lt;P&gt;I'm not sure what that means... did you try the solutions I suggested? Did they not work?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790461#M1210577</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-11T11:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790468#M1210578</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried but it didn't work, what I need is that even if I have Excel open, it reloads all the files.&lt;BR /&gt;&lt;BR /&gt;Right now what it does is that it skips the error, but it does not load the Excel, which I have open.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I show you the code.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Presupuestos:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//Generamos tabla ppto con un primer registro ficticio&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;load * Inline&lt;BR /&gt;&lt;BR /&gt;[Contador_Presupuesto,Nombre_Fichero,"posicion CM",Descripción,"Importe Unitario","Cantidad (*)",Total,Observaciones,Cod.Mat.Prov.,CM,PRJ,Descripción SAP,Sistema,Proveedor,&lt;BR /&gt;&lt;BR /&gt;0,Malo,xxx,aa,12,1,5656,90000,3333,4600000000,PRJ,xxxx,OOOO,ppp];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for each vFile in FileList('$(vPath)*.xlsx')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let vFileExist=if(FileSize('$(vFile)')&amp;gt;0,-1,0);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if $(vFileExist) then&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let vContador=$(vContador)+1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//Generamos tabla temporal para poder almacenar CM en variable&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;temp:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;BR /&gt;D&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;&lt;BR /&gt;[$(vFile)] (ooxml, no labels)&lt;BR /&gt;&lt;BR /&gt;Where Left(D,5)='46000';&lt;BR /&gt;&lt;BR /&gt;let vContrato=Peek ('D',0);&lt;BR /&gt;&lt;BR /&gt;drop Table temp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;temp2:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;BR /&gt;C,&lt;BR /&gt;&lt;BR /&gt;D&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;&lt;BR /&gt;[$(vFile)] (ooxml, no labels, header is 1 lines)&lt;BR /&gt;&lt;BR /&gt;Where C='Proveedor:';&lt;BR /&gt;&lt;BR /&gt;//Store temp2 into [$(vQVD)prueba.qvd](qvd);&lt;BR /&gt;&lt;BR /&gt;let vProveedor=Peek ('D',0);&lt;BR /&gt;&lt;BR /&gt;drop Table temp2;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//Concatenamos presupuestos&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Concatenate (Presupuestos)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD $(vContador) as Contador_Presupuesto,&lt;BR /&gt;&lt;BR /&gt;'$(vContrato)' as CM,&lt;BR /&gt;&lt;BR /&gt;'$(vProveedor)' as Proveedor,&lt;BR /&gt;&lt;BR /&gt;FileName () as Nombre_Fichero,&lt;BR /&gt;&lt;BR /&gt;[posicion CM],&lt;BR /&gt;&lt;BR /&gt;Descripción,&lt;BR /&gt;&lt;BR /&gt;[Importe Unitario],&lt;BR /&gt;&lt;BR /&gt;[Cantidad (*)],&lt;BR /&gt;&lt;BR /&gt;Total,&lt;BR /&gt;&lt;BR /&gt;Observaciones,&lt;BR /&gt;&lt;BR /&gt;Cod.Mat.Prov.,&lt;BR /&gt;&lt;BR /&gt;PRJ,&lt;BR /&gt;&lt;BR /&gt;"Descripción SAP",&lt;BR /&gt;&lt;BR /&gt;Sistema &amp;amp; PRJ as Clave,&lt;BR /&gt;&lt;BR /&gt;Sistema&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM [$(vFile)](ooxml, embedded labels,header is 7 lines)&lt;BR /&gt;&lt;BR /&gt;Where Len([Cantidad (*)]) &amp;gt;0;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Next;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;store Presupuestos into [$(vQVD)presupuestos.qvd](qvd);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790468#M1210578</guid>
      <dc:creator>yaguilej</dc:creator>
      <dc:date>2021-03-11T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading qlikvier with open files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790485#M1210580</link>
      <description>&lt;P&gt;If Qlik can't read the file that is currently open, no amount of code will change that. Qlik attempts to read a file and if that fails, it fails. All you can do is tell it to ignore that error and move to the next file.&lt;/P&gt;&lt;P&gt;If the file is temporarily open, you can put Qlik on a loop to keep trying to read it, but if the file has been left open and this prevents reading it, that won't help either. Note that Qlik typically has no issues loading from an open Excel file, so this is something local to your deployment and should be taken up with your sysadmins.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 12:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-qlikvier-with-open-files/m-p/1790485#M1210580</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-11T12:14:51Z</dc:date>
    </item>
  </channel>
</rss>

