<?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: Missing sheet information tracing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944170#M325318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Errormode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Code:&lt;/P&gt;&lt;P&gt;FOR Each File in FileList('.\Employee_*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;LOAD EmpId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'(ooxml, embedded labels, table is EmpDetails);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorQvd:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;//'$(File)' as FileName,&lt;/P&gt;&lt;P&gt;'$(File)' as FilePath,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( Len('$(ScriptError)') =0,'No Error','$(ScriptError): $(ScriptErrorDetails)') as ErrorDetails,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReloadTime() as [Reloaded Date and Time]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;autogenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Errormode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Sep 2015 10:48:05 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-09-26T10:48:05Z</dc:date>
    <item>
      <title>Missing sheet information tracing</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944169#M325317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to find missing sheet details in particular file(missing EmpDetails in Employee_4) please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Code:&lt;/P&gt;&lt;P&gt;FOR Each File in FileList('D:\Network_Drive\24_09_2015\Excel Files\*.xlsx')&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;LOAD EmpId, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'(ooxml, embedded labels, table is EmpDetails);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorQvd:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;FileName() as FileName,&lt;/P&gt;&lt;P&gt;'$(File)' as FilePath, &lt;/P&gt;&lt;P&gt;if(len('$(ScriptErrorDetails)')=0,'No Error','$(ScriptErrorDetails)') as ErrorDetails,&lt;/P&gt;&lt;P&gt;ReloadTime() as [Reloaded Date and Time]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'(ooxml, embedded labels, table is EmpDetails);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Errormode=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 07:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944169#M325317</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2015-09-26T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sheet information tracing</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944170#M325318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Errormode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Code:&lt;/P&gt;&lt;P&gt;FOR Each File in FileList('.\Employee_*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;LOAD EmpId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'(ooxml, embedded labels, table is EmpDetails);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorQvd:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;//'$(File)' as FileName,&lt;/P&gt;&lt;P&gt;'$(File)' as FilePath,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( Len('$(ScriptError)') =0,'No Error','$(ScriptError): $(ScriptErrorDetails)') as ErrorDetails,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReloadTime() as [Reloaded Date and Time]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;autogenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Errormode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 10:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944170#M325318</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-26T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sheet information tracing</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944171#M325319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, your code showing us an error for field information as EmpId missing in the file 4 ,but here entire EmpDetails table/tab is missing from file we want that information to show. Could you please tell me how to achieve this. Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 11:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944171#M325319</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2015-09-26T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sheet information tracing</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944172#M325320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;I am trying to achieve this since last two days, but i am not successful in any case and i tried to get information form community, there is very limited content available for this sort of issues. Please help me to find missing sheet information form file when using above mentioned for each loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 11:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944172#M325320</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2015-09-26T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sheet information tracing</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944173#M325321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default LOAD error will not show a missing sheet, but field not found. If you really need to show a missing sheet, you would need to check for existing sheet, and if I am correct, you'll need to do an ODBC connection to the EXCEL file and scan the sheet names. Something along these lines (which are not really optimized, just a POC):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Errormode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Code:&lt;/P&gt;&lt;P&gt;FOR Each File in FileList('.\Employee_*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;LOAD EmpId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sal&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'(ooxml, embedded labels, table is EmpDetails);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vErrorDetailsTMP = '$(ScriptErrorDetails)';&lt;/P&gt;&lt;P&gt;Set vErrorTMP = '$(ScriptError)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Len('$(vErrorDetailsTMP)') THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//In order to get the file information from SQLtables command making use of the ODBC connection format &lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(File)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: &lt;/P&gt;&lt;P&gt;SQLtables; &lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vSheetFound = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 0 to NoOfRows('tables')-1&lt;/P&gt;&lt;P&gt;LET sheetName = purgeChar(purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39)), chr(36));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF '$(sheetName)' = 'EmpDetails' THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vSheetFound = 1;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vSheetFound = 0 THEN&lt;/P&gt;&lt;P&gt;Let vErrorDetailsTMP = 'EmpDetails sheet does not exist';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorQvd:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;//'$(File)' as FileName,&lt;/P&gt;&lt;P&gt;'$(File)' as FilePath,&lt;/P&gt;&lt;P&gt;if( Len('$(ScriptError)$(vErrorDetailsTMP)') =0,'No Error','$(ScriptError)$(vErrorTMP): $(ScriptErrorDetails)$(vErrorDetailsTMP)') as ErrorDetails,&lt;/P&gt;&lt;P&gt;ReloadTime() as [Reloaded Date and Time]&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;SET Errormode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 12:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-sheet-information-tracing/m-p/944173#M325321</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-26T12:05:01Z</dc:date>
    </item>
  </channel>
</rss>

