<?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: Data Load Editor: QVD to TEXT file generates &amp;quot;unexpected error&amp;quot; token in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2410792#M94605</link>
    <description>&lt;P&gt;Thank you again for all your help.&amp;nbsp; A&lt;STRONG&gt; REPLACE (FIELD, ';' , ',') as FIELD&lt;/STRONG&gt; has solved this problem by replacing the problematic semicolon in the automatic audit field with a comma. All good&amp;nbsp; now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 19:16:41 GMT</pubDate>
    <dc:creator>jrn_001</dc:creator>
    <dc:date>2024-01-24T19:16:41Z</dc:date>
    <item>
      <title>Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2159742#M94049</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I inherited code that reads QVD data into a text string separated by a "|" symbol within a text file on a cloud sever. Then, an $(INCLUDE= .txt) file is written, after which SQL syntax is used to INSERT OVERWRITE the data into a DataBricks table store. This is the code (variable names etc. redacted):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;//First the fields are read in from the QVD&lt;/P&gt;
&lt;P&gt;[TABLE]:&lt;BR /&gt;LOAD&lt;BR /&gt;A,&lt;BR /&gt;B&lt;BR /&gt;C,&lt;BR /&gt;D,&lt;BR /&gt;E,&lt;BR /&gt;TABLE.Edited_By,&lt;BR /&gt;TABLE.Edited_At&lt;BR /&gt;FROM [lib://location/file.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;//Then the QVD is transmuted into a text string, and then SQL-inserted into a DataBricks table store.&lt;/P&gt;
&lt;P&gt;unqualify*; &lt;BR /&gt;NoConcatenate &lt;BR /&gt;table_qvd: &lt;BR /&gt;LOAD * &lt;BR /&gt;RESIDENT TABLE;&lt;/P&gt;
&lt;P&gt;unqualify*; &lt;BR /&gt;NoConcatenate &lt;BR /&gt;table_qvd_str: &lt;BR /&gt;LOAD &lt;BR /&gt;CONCAT( &lt;BR /&gt;&lt;SPAN&gt;"A"&amp;nbsp;&amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"B"&amp;nbsp;&amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"C"&amp;nbsp;&amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"D"&amp;nbsp;&amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"E"&amp;nbsp;&amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TABLE.Edited_By" &amp;amp; '|' &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TABLE.Edited_At" &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;'%') AS [SET DATA =] RESIDENT t&lt;SPAN&gt;able_qvd&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;STORE [SET DATA =] FROM &lt;SPAN&gt;table_qvd_str&lt;/SPAN&gt; INTO "lib://location/table_qvd.txt" (TXT);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;$(INCLUDE=[&lt;SPAN&gt;lib://location/table_qvd.txt&lt;/SPAN&gt;]);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SQL INSERT OVERWRITE workspace.databricks_table VALUES ('$(DATA)')!EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;
&lt;P&gt;DROP TABLES table_qvd, table_qvd_str;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...generating this error at the point at which "Edited_At" and "Edited_By" are separated&lt;/P&gt;
&lt;DIV&gt;..&lt;EM&gt;and I have isolated the line of code that generates this error as the bold $(INCLUDE=) &lt;/EM&gt;line above:&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="headline edc_error"&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;&lt;STRONG&gt;Unexpected token: '|1', expected one of: 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'OPERATOR_MULTIPLICATION', 'OPERATOR_DIVISION', 'OPERATOR_STRING_CONCAT', 'like', 'and', ...&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="empty edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="headline edc_error"&gt;&lt;STRONG&gt;The error occurred here:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;&lt;STRONG&gt;UserId=0101010102&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;|1&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;/9/2024 5:12:21 PM%&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;I don't understand why this happens for some of the text files, but not for all of them, as I repetitively do this for a number of VizLib WriteBack table-generated QVDs. There doesn't seem to be any hidden symbols or strange-formatted hidden text in the field where the unexpected token arises. I change the token from the pipe symbol to an asterix, to a back-slash, to a comma- nothing works: the "unexpected token" error keeps getting thrown.&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;Any help would be greatly appreciated. Thank you!&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jan 2024 19:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2159742#M94049</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-09T19:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160536#M94137</link>
      <description>&lt;P&gt;I suggest to compare the 3 stages (table from qvd + string from resident + txt-file per editor) from the working and failing executions. I assume that the differences will be easily to detect. I could imagine that any comma and/or quoting or similar occurs through the content of the data or different interpretation-settings.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 12:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160536#M94137</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-11T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160543#M94138</link>
      <description>&lt;P&gt;Thank you Marcus! Yes, will do and report back. Appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very respectfully,&lt;/P&gt;
&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 12:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160543#M94138</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-11T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160689#M94154</link>
      <description>&lt;P&gt;Hello Marcus,&lt;/P&gt;
&lt;P&gt;Something strange is going on in the encoding of one text file, vs. the encoding of the other. I don't know why, because the QVD fields and QVDs from which they derive, via VizLib WriteBack forms, are all formatted identically when it comes to the Audit timestamp column that is causing this unexpected token in one instance.&lt;/P&gt;
&lt;P&gt;When I view the successful text file within Qlik's file viewer as a delimited file with a "semicolon" delimiter, I see the entire concatenated string. When I view the unsuccessful text file the same way, with a "semicolon" delimiter, even though the formats of each field between the pipe manually-concatenated delimiter are exactly the same, it truncates the text severely in the unsuccessful text file. Very strange.&lt;/P&gt;
&lt;P&gt;Further, when I manually insert the unsuccessfull text data file via data load script from the Qlik viewer "insert script" as such- with a COMMA delimiter which enables all the string to be viewed in the Qlik viewer, unlike the unsuccessful semicolon- the DLE runs successfully:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;@1&lt;BR /&gt;FROM [lib:URL/file.txt]&lt;BR /&gt;(txt, utf8, no labels, delimiter is ',', no quotes);&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, I don't know how to get the above loaded data/field into my dataBricks table via SQL INSERT OVERWRITE. The $(INCLUDE=) doesn't work, and using ('$(DATA)') bypasses the above loaded data for the last table $INCLUDE= data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think if I knew how to get the manually-scripted data into dataBricks via SQL this will be solved. Thoughts? Thank you immeasurably.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very respectfully,&lt;/P&gt;
&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160689#M94154</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-11T16:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160976#M94191</link>
      <description>&lt;P&gt;Try to look on the results with an editor like Notepad++ to see all chars - maybe there are any unexpected not visible ones like any line-breaks or NULL. Also possible is to check these information within a Qlik load with something like:&lt;/P&gt;
&lt;P&gt;load *, ord(Chr) as Ord;&lt;BR /&gt;load *, mid(Data, iterno(), 1) as Chr, iterno() as IterNo while iterno() &amp;lt;= len(Data);&lt;BR /&gt;load&amp;nbsp;[@1:n] as Data from&amp;nbsp;&lt;SPAN&gt;table_qvd.txt (fix, utf8, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside the above mentioned extra commas/quoting it might be also possible that the data cause any line-break or EOF or similar by storing the txt. There are various interpretation-logic included within the here used old windows libraries which may trigger any transformation - quite common are /n and similar stuff.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 09:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2160976#M94191</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-12T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161034#M94193</link>
      <description>&lt;P&gt;Thank you for this information, and definitely will do, but do you know of any SQL INSERT OVERWRITE syntax that can just get the data loaded with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [lib:URL/file.txt]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(txt, utf8, no labels, delimiter is ',', no quotes);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...stored into a DataBricks table? If so, I think this problem may be solved faster. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161034#M94193</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-12T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161048#M94195</link>
      <description>&lt;P&gt;You could try to skip the store as txt and fetching it per include() again by assigning the content directly to a variable, like:&lt;/P&gt;
&lt;P&gt;let MyVar = peek('&lt;SPAN&gt;SET DATA =', 0, 'table_qvd_str');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and then using this variable within the SQL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside this it might be helpful to show the variable-content within the progress-window as well as within the document-log before they are used within a statement, for example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TRACE $(MyVar);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If anything breaks it makes it easier to find the reasons.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161048#M94195</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-12T11:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161113#M94208</link>
      <description>&lt;P&gt;Awesome. Thank you for this information.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 13:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161113#M94208</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-12T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161139#M94214</link>
      <description>&lt;P&gt;Additional question: this is all taking place on a Qlik Cloud, Amazon Enterprise instance- so, I can't easily use Notepad ++ to investigate hidden characters. Any recommendations? No worries if not. Thanks for all your help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 16:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161139#M94214</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-12T16:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161369#M94248</link>
      <description>&lt;P&gt;With the above hinted load of the txt and/or also the qvd and looping through the field by extracting each single char and their numeric ascii-index you could also investigate the entire content. Important by such an approach is the usage of recno/rowno/iterno to look on the results within the origin order and also to merge it later properly (if needed).&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 11:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2161369#M94248</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-14T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2162039#M94323</link>
      <description>&lt;P&gt;Thank you for this information.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2162039#M94323</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-16T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor: QVD to TEXT file generates "unexpected error" token</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2410792#M94605</link>
      <description>&lt;P&gt;Thank you again for all your help.&amp;nbsp; A&lt;STRONG&gt; REPLACE (FIELD, ';' , ',') as FIELD&lt;/STRONG&gt; has solved this problem by replacing the problematic semicolon in the automatic audit field with a comma. All good&amp;nbsp; now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 19:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-QVD-to-TEXT-file-generates-quot-unexpected/m-p/2410792#M94605</guid>
      <dc:creator>jrn_001</dc:creator>
      <dc:date>2024-01-24T19:16:41Z</dc:date>
    </item>
  </channel>
</rss>

