<?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 Load long string from TextFile and split into Rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-long-string-from-TextFile-and-split-into-Rows/m-p/1639458#M447080</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have a json string within a text file that I would like to split into Rows.&lt;/P&gt;&lt;P&gt;when openined in notepad the string looks like :&lt;/P&gt;&lt;P&gt;{"APIResults":{"10008": {"ID": "9108471", "Value": "0", "Input": "N/A"}, {"10009": {"ID": "41066228", "Value": "0", "Input": "N/A"}, {"100010": {"ID": "174106", "Value": "0", "Input": "N/A"}, {"100011": {"ID": "601057808", "Value": "0", "Input": "N/A"}, {"100012": {"ID": "8030454", "Value": "0", "Input": "N/A"}}, "Summary": {"TotalCount": 8656, "ProcessingTimeSeconds": 156.242008}, "APIMessage": {"StatusCode": 200, "Message": "SUCCESS"}}&lt;/P&gt;&lt;P&gt;the row delimeter is a '},' so the resulting table should look like :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"10008": {"ID": "9108471", "Value": "0", "Input": "N/A"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;{"10009": {"ID": "41066228", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100010": {"ID": "174106", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100011": {"ID": "601057808", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100012": {"ID": "8030454", "Value": "0", "Input": "N/A"}&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If possible I would like to omit the first part :&amp;nbsp;&lt;STRONG&gt;{"APIResults":&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and also the trailing details at the end :&lt;BR /&gt;&lt;STRONG&gt;"Summary": {"TotalCount": 8656,&amp;nbsp; "ProcessingTimeSeconds": 156.242008}, "APIMessage": {"StatusCode": 200, "Message": "SUCCESS"}}&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this possible using a load script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks, Phil&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:49:15 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2024-11-16T19:49:15Z</dc:date>
    <item>
      <title>Load long string from TextFile and split into Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Load-long-string-from-TextFile-and-split-into-Rows/m-p/1639458#M447080</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have a json string within a text file that I would like to split into Rows.&lt;/P&gt;&lt;P&gt;when openined in notepad the string looks like :&lt;/P&gt;&lt;P&gt;{"APIResults":{"10008": {"ID": "9108471", "Value": "0", "Input": "N/A"}, {"10009": {"ID": "41066228", "Value": "0", "Input": "N/A"}, {"100010": {"ID": "174106", "Value": "0", "Input": "N/A"}, {"100011": {"ID": "601057808", "Value": "0", "Input": "N/A"}, {"100012": {"ID": "8030454", "Value": "0", "Input": "N/A"}}, "Summary": {"TotalCount": 8656, "ProcessingTimeSeconds": 156.242008}, "APIMessage": {"StatusCode": 200, "Message": "SUCCESS"}}&lt;/P&gt;&lt;P&gt;the row delimeter is a '},' so the resulting table should look like :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"10008": {"ID": "9108471", "Value": "0", "Input": "N/A"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;{"10009": {"ID": "41066228", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100010": {"ID": "174106", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100011": {"ID": "601057808", "Value": "0", "Input": "N/A"}, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{"100012": {"ID": "8030454", "Value": "0", "Input": "N/A"}&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If possible I would like to omit the first part :&amp;nbsp;&lt;STRONG&gt;{"APIResults":&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and also the trailing details at the end :&lt;BR /&gt;&lt;STRONG&gt;"Summary": {"TotalCount": 8656,&amp;nbsp; "ProcessingTimeSeconds": 156.242008}, "APIMessage": {"StatusCode": 200, "Message": "SUCCESS"}}&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this possible using a load script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks, Phil&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-long-string-from-TextFile-and-split-into-Rows/m-p/1639458#M447080</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2024-11-16T19:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load long string from TextFile and split into Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Load-long-string-from-TextFile-and-split-into-Rows/m-p/1639470#M447081</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD Replace(FieldName, '{"APIResults":', '') as FieldName
Where Not WildMatch(FieldName, '*Summary*', '*APIMessage*');
LOAD SubField(@1, '},') &amp;amp; '}' as FieldName
FROM
[Load long string from TextFile and split into Rows.txt]
(txt, codepage is 1252, explicit labels, delimiter is '\t', msq);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-long-string-from-TextFile-and-split-into-Rows/m-p/1639470#M447081</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-24T12:13:36Z</dc:date>
    </item>
  </channel>
</rss>

