<?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 Problem extracting data from the QVD file to load into the spreadsheet. in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-extracting-data-from-the-QVD-file-to-load-into-the/m-p/2160092#M19697</link>
    <description>&lt;P&gt;I have a problem where data that is pulled from a server by a QVD file&lt;BR /&gt;are not being loaded on the current date, the system works perfectly in the Script&lt;BR /&gt;load, but when I check the data, only those that are finished are displayed, the rest&lt;BR /&gt;is not recognized. What could this problem be? How can I get around this?&lt;BR /&gt;I'll leave the script code to check:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Set dataManagerTables = '','tables';&lt;BR /&gt;//This block renames script tables from non generated section which conflict with the names of managed tables&lt;/P&gt;
&lt;P&gt;For each name in $(dataManagerTables)&lt;BR /&gt;Let index = 0;&lt;BR /&gt;Let currentName = name; &lt;BR /&gt;Let tableNumber = TableNumber(name); &lt;BR /&gt;Let matches = 0; &lt;BR /&gt;Do while not IsNull(tableNumber) or (index &amp;gt; 0 and matches &amp;gt; 0)&lt;BR /&gt;index = index + 1; &lt;BR /&gt;currentName = name &amp;amp; '-' &amp;amp; index; &lt;BR /&gt;tableNumber = TableNumber(currentName) &lt;BR /&gt;matches = Match('$(currentName)', $(dataManagerTables);&lt;BR /&gt;Loop &lt;BR /&gt;If index &amp;gt; 0 then &lt;BR /&gt;Rename Table '$(name)' to '$(currentName)'; &lt;BR /&gt;EndIf; &lt;BR /&gt;Next; &lt;BR /&gt;Set dataManagerTables = ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Unqualify *;&lt;/P&gt;
&lt;P&gt;[TICKET]:&lt;BR /&gt;LOAD&lt;BR /&gt;ROWNO() AS KEY,&lt;BR /&gt;ID,&lt;BR /&gt;NOME,&lt;BR /&gt;USUARIO_FINAL,&lt;BR /&gt;ID_SHAREDBOX,&lt;BR /&gt;ID_STATUS,&lt;BR /&gt;ID_CATEGORIA,&lt;BR /&gt;ID_SUBCATEGORIA,&lt;BR /&gt;NOME_REMETENTE,&lt;BR /&gt;EMAIL_REMETENTE,&lt;BR /&gt;DEPARTAMENTO,&lt;BR /&gt;EMAIL_ATENDENTE,&lt;BR /&gt;CATEGORIA,&lt;BR /&gt;SUBCATEGORIA,&lt;BR /&gt;STATUS,&lt;BR /&gt;FINAL,&lt;BR /&gt;DATE_INSERT,&lt;BR /&gt;DATE_UPDATE,&lt;BR /&gt;DATE_LOG,&lt;BR /&gt;ATENDENTE,&lt;BR /&gt;MES_ANO,&lt;BR /&gt;HORA,&lt;BR /&gt;HORA_FINALIZADO,&lt;BR /&gt;MES,&lt;BR /&gt;IF(DURACAO &amp;lt;= MAKETIME(1), 'Menos de 1h', &lt;BR /&gt;IF(DURACAO &amp;gt; MAKETIME(1) AND DURACAO &amp;lt;= MAKETIME(2), 'Entre 1h e 2h', 'Mais de 2h')) AS INTERVALO&lt;BR /&gt;FROM [lib://QVD_TRB/TICKET.qvd] (qvd)&lt;BR /&gt;WHERE DEPARTAMENTO = 'Cadastro de Rotas';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 14:12:41 GMT</pubDate>
    <dc:creator>CaioAraujo</dc:creator>
    <dc:date>2024-01-10T14:12:41Z</dc:date>
    <item>
      <title>Problem extracting data from the QVD file to load into the spreadsheet.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-extracting-data-from-the-QVD-file-to-load-into-the/m-p/2160092#M19697</link>
      <description>&lt;P&gt;I have a problem where data that is pulled from a server by a QVD file&lt;BR /&gt;are not being loaded on the current date, the system works perfectly in the Script&lt;BR /&gt;load, but when I check the data, only those that are finished are displayed, the rest&lt;BR /&gt;is not recognized. What could this problem be? How can I get around this?&lt;BR /&gt;I'll leave the script code to check:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Set dataManagerTables = '','tables';&lt;BR /&gt;//This block renames script tables from non generated section which conflict with the names of managed tables&lt;/P&gt;
&lt;P&gt;For each name in $(dataManagerTables)&lt;BR /&gt;Let index = 0;&lt;BR /&gt;Let currentName = name; &lt;BR /&gt;Let tableNumber = TableNumber(name); &lt;BR /&gt;Let matches = 0; &lt;BR /&gt;Do while not IsNull(tableNumber) or (index &amp;gt; 0 and matches &amp;gt; 0)&lt;BR /&gt;index = index + 1; &lt;BR /&gt;currentName = name &amp;amp; '-' &amp;amp; index; &lt;BR /&gt;tableNumber = TableNumber(currentName) &lt;BR /&gt;matches = Match('$(currentName)', $(dataManagerTables);&lt;BR /&gt;Loop &lt;BR /&gt;If index &amp;gt; 0 then &lt;BR /&gt;Rename Table '$(name)' to '$(currentName)'; &lt;BR /&gt;EndIf; &lt;BR /&gt;Next; &lt;BR /&gt;Set dataManagerTables = ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Unqualify *;&lt;/P&gt;
&lt;P&gt;[TICKET]:&lt;BR /&gt;LOAD&lt;BR /&gt;ROWNO() AS KEY,&lt;BR /&gt;ID,&lt;BR /&gt;NOME,&lt;BR /&gt;USUARIO_FINAL,&lt;BR /&gt;ID_SHAREDBOX,&lt;BR /&gt;ID_STATUS,&lt;BR /&gt;ID_CATEGORIA,&lt;BR /&gt;ID_SUBCATEGORIA,&lt;BR /&gt;NOME_REMETENTE,&lt;BR /&gt;EMAIL_REMETENTE,&lt;BR /&gt;DEPARTAMENTO,&lt;BR /&gt;EMAIL_ATENDENTE,&lt;BR /&gt;CATEGORIA,&lt;BR /&gt;SUBCATEGORIA,&lt;BR /&gt;STATUS,&lt;BR /&gt;FINAL,&lt;BR /&gt;DATE_INSERT,&lt;BR /&gt;DATE_UPDATE,&lt;BR /&gt;DATE_LOG,&lt;BR /&gt;ATENDENTE,&lt;BR /&gt;MES_ANO,&lt;BR /&gt;HORA,&lt;BR /&gt;HORA_FINALIZADO,&lt;BR /&gt;MES,&lt;BR /&gt;IF(DURACAO &amp;lt;= MAKETIME(1), 'Menos de 1h', &lt;BR /&gt;IF(DURACAO &amp;gt; MAKETIME(1) AND DURACAO &amp;lt;= MAKETIME(2), 'Entre 1h e 2h', 'Mais de 2h')) AS INTERVALO&lt;BR /&gt;FROM [lib://QVD_TRB/TICKET.qvd] (qvd)&lt;BR /&gt;WHERE DEPARTAMENTO = 'Cadastro de Rotas';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-extracting-data-from-the-QVD-file-to-load-into-the/m-p/2160092#M19697</guid>
      <dc:creator>CaioAraujo</dc:creator>
      <dc:date>2024-01-10T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extracting data from the QVD file to load into the spreadsheet.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-extracting-data-from-the-QVD-file-to-load-into-the/m-p/2479530#M21190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/261242"&gt;@CaioAraujo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;the issue you're describing is likely related to the filtering or condition applied in your where clause, it could be that some records are not meeting the conditions at the time of data loading, or there might be a timing issue where some records are not yet available or marked as "finished."&lt;/P&gt;
&lt;P&gt;You could temporarily remove the where clause to see if the records for the current date are present without the filter. Or you can try modifying it like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; DEPARTAMENTO &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'Cadastro de Rotas'&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;OR&lt;/SPAN&gt; DATE_INSERT &lt;SPAN class="hljs-operator"&gt;&amp;gt;=&lt;/SPAN&gt; TODAY();&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 07:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-extracting-data-from-the-QVD-file-to-load-into-the/m-p/2479530#M21190</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-09-04T07:07:43Z</dc:date>
    </item>
  </channel>
</rss>

