<?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 Import Script for Codes from Excel that could be Scientific Notation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Import-Script-for-Codes-from-Excel-that-could-be-Scientific/m-p/1322085#M28550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a relatively simple load that I'm trying to do from an XLSX file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Value as ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as Desc&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(path_File_Data)\myfile.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is LIST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the XLSX file, the IDs are in the format of 0x## (zero, a letter, then 2 or maybe 3 digits. Ex. - 0D45). These are Segment codes coming from Oracle Financials, FWIW. For most of the values this isn't a problem. But, it seems that in the Excel sheet the values that start with 0E## are considered numeric (and Excel precedes the value with a single quote to force it to appear as a text value, which it doesn't do for the other IDs). When I try to import them with the script above, I get a 0 as the ID for &lt;EM&gt;all&lt;/EM&gt; the 0E## values, presumably because it's a tiny number that just gets rounded to 0. If I try to force the import as Text with the Text() function, all the IDs come in as '0000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not generating the XLSX file, so I can't easily modify my source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything I can do in the load script itself to get the ID values to load as '0E01', '0E02', etc...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 18:03:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-06T18:03:35Z</dc:date>
    <item>
      <title>Import Script for Codes from Excel that could be Scientific Notation</title>
      <link>https://community.qlik.com/t5/App-Development/Import-Script-for-Codes-from-Excel-that-could-be-Scientific/m-p/1322085#M28550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a relatively simple load that I'm trying to do from an XLSX file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Value as ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as Desc&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(path_File_Data)\myfile.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is LIST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the XLSX file, the IDs are in the format of 0x## (zero, a letter, then 2 or maybe 3 digits. Ex. - 0D45). These are Segment codes coming from Oracle Financials, FWIW. For most of the values this isn't a problem. But, it seems that in the Excel sheet the values that start with 0E## are considered numeric (and Excel precedes the value with a single quote to force it to appear as a text value, which it doesn't do for the other IDs). When I try to import them with the script above, I get a 0 as the ID for &lt;EM&gt;all&lt;/EM&gt; the 0E## values, presumably because it's a tiny number that just gets rounded to 0. If I try to force the import as Text with the Text() function, all the IDs come in as '0000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not generating the XLSX file, so I can't easily modify my source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything I can do in the load script itself to get the ID values to load as '0E01', '0E02', etc...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Import-Script-for-Codes-from-Excel-that-could-be-Scientific/m-p/1322085#M28550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T18:03:35Z</dc:date>
    </item>
  </channel>
</rss>

