<?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: Qvd fetch Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948387#M326475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your qvd's aren't very big so that you don't really needs optimized loadings you could simply use &lt;STRONG&gt;filebasename&lt;/STRONG&gt;() as Source within the lad-statement. If the qvd's really big you could use qvd-file-functions like QvdNoOfFields() and QvdFieldName() to loop through the xml-header from each qvd, maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vQVD in Filelist(....)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 1 to QvdNoOfFields('$(vQVD)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vField = QvdFieldName('$(vQVD)', $(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..... // your checks - maybe loading into another file&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 15:27:31 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-09-14T15:27:31Z</dc:date>
    <item>
      <title>Qvd fetch Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948385#M326473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am loading multiple QVDs at one time eg ( *_Item), the issue which I am facing is that one particular Field is missing from some of the Qvds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway where I can find from which qvd the particular coloumn is missing?&lt;/P&gt;&lt;P&gt;As there are huge number of QVDs it is not possible to check each QVD.&lt;/P&gt;&lt;P&gt;Tried to find through log but still couldn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948385#M326473</guid>
      <dc:creator>rahulsud007</dc:creator>
      <dc:date>2015-09-14T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qvd fetch Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948386#M326474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to load the QVDs using &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ForEach vFile in FileList(....)&lt;/P&gt;&lt;P&gt;rather than using a wildcard load. You could use QVDNoOfFields('$(vFile)') to determine if the field exists and branch to a conditional load that does not load the problem field. Or load with a LOAD *, but either way you will need to load with a concatenate statement to force the load into one table. Something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set vConc = 'Data:';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ForEach vFile In FileList('... path and file miask ...')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If Alt(NoOfRow('Data'), 0) &amp;gt; 0 Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConc = 'Concatenate(Data)';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $(vConc)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; LOAD * FROM [$(vFile)] (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;next&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948386#M326474</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-14T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Qvd fetch Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948387#M326475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your qvd's aren't very big so that you don't really needs optimized loadings you could simply use &lt;STRONG&gt;filebasename&lt;/STRONG&gt;() as Source within the lad-statement. If the qvd's really big you could use qvd-file-functions like QvdNoOfFields() and QvdFieldName() to loop through the xml-header from each qvd, maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vQVD in Filelist(....)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 1 to QvdNoOfFields('$(vQVD)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vField = QvdFieldName('$(vQVD)', $(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..... // your checks - maybe loading into another file&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948387#M326475</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-14T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qvd fetch Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948388#M326476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This process will also show you the names of the files in the log file, so you'll be able to identify which table fails&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948388#M326476</guid>
      <dc:creator>dclark0699</dc:creator>
      <dc:date>2015-09-14T15:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qvd fetch Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948389#M326477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Imagine that the only discrepancy is that sometimes one or more columns are missing, you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vExpectedNoOfFields = &lt;EM&gt;12&lt;/EM&gt;: // Change this to the correct number of fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR EACH vQVDFile in FileList('&lt;EM&gt;path-and-mask&lt;/EM&gt;')&amp;nbsp; // Enter the QVD location&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IF QvdNoOfFields('$(vQVDFile)') &amp;lt;&amp;gt; $(vExpectedNoOfFields) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE &amp;gt;&amp;gt;&amp;gt; File [$(vQVDFile)] does not have enough Fields!!! &amp;lt;&amp;lt;&amp;lt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable Log file generation, run the script and look in the log for all lines that start with &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qvd-fetch-Error/m-p/948389#M326477</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-14T15:39:32Z</dc:date>
    </item>
  </channel>
</rss>

