<?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: Loading Text Files with Pipe delimited in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1602009#M596151</link>
    <description>&lt;P&gt;what about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test:
LOAD 
	 RowNo() as Row,
	 A_MyKey,
     [Open/Closed], 
     New, 
     Status, 
     [Line Number], 
     Description,
     Reference,
     Profession     
FROM
[C:\Users\admin\Desktop\TestPipe.txt]
(txt, codepage is 1252, embedded labels, delimiter is '|', msq);

NoConcatenate

Load RowNo() as Row,
	 A_MyKey,
     [Open/Closed], 
     New, 
     Status, 
     [Line Number],      
     Profession,  	     
	 if(Reference='',  Description &amp;amp;' '&amp;amp;Previous(A_MyKey)&amp;amp;' '&amp;amp;Previous(Previous(A_MyKey)) ,Description) as  Description,
     if(Reference='',Previous(Previous([Open/Closed])),Reference) as Reference
Resident Test Where Description&amp;lt;&amp;gt;'' Order by Row desc; DROP Table Test;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 13 Jul 2019 09:44:27 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2019-07-13T09:44:27Z</dc:date>
    <item>
      <title>Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601454#M596145</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Query re loading “|” pipe delimited text files.&amp;nbsp; Using QlikView 11.20&lt;/P&gt;&lt;P&gt;We have pipe delimited text files that we need to load into QlikView. The issue is, that there are a few text fields that contain carriage returns and line feeds chr(10) and chr(13). Inevitable QlikView treats these as delimiters and breaks into new fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this syntax (txt, codepage is 1252, embedded labels, delimiter is '|', msq); in the load statement, and even combinations of Replace(Replace([My Description], chr(10), ''),chr(13),'') As [My Description]&lt;/P&gt;&lt;P&gt;I’ve looked around the forum read some interesting articles and tried numerous suggested solutions, but QlikView always seems to default to treating the combination of chr(10) and chr(13) as a delimiter.&lt;/P&gt;&lt;P&gt;Is there solution for this issue or maybe I missing something, ideally we want to avoid any pre-processing with other tools, or get the text file format changed (they are set in stone!).&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;PS I did try the topic "Text file loading resistant to extra CF/LR "– unfortunately it didn’t help&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601454#M596145</guid>
      <dc:creator>Neil_B</dc:creator>
      <dc:date>2024-11-16T03:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601455#M596146</link>
      <description>&lt;P&gt;Are you able to share an example source file? It works for me on a basic txt file but I dont think i have the special char situations you described.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601455#M596146</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2019-07-11T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601463#M596147</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Yes I'll try create file to replicate the&amp;nbsp;issue, obviously I have to be carefully with the original data&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601463#M596147</guid>
      <dc:creator>Neil_B</dc:creator>
      <dc:date>2019-07-11T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601727#M596148</link>
      <description>&lt;P&gt;I've included an attachment (text&amp;nbsp;file, Zipped) at the top. Loading this in to QlikView will demonstrate the issue as mentioned above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601727#M596148</guid>
      <dc:creator>Neil_B</dc:creator>
      <dc:date>2019-07-12T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601754#M596149</link>
      <description>&lt;P&gt;if its always the same structure you can try like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD if(len(A_MyKey)&amp;gt;3,Null(),A_MyKey) as A_MyKey,
     [Open/Closed], 
     New, 
     Status, 
     [Line Number], 
     if(len(Description)&amp;lt;28, Description&amp;amp;' no carriage returns or line feeds',Description) as Description,
     if(Reference='', 'Reference Z'&amp;amp; right(A_MyKey,2) ,Reference) as Reference,
     Profession
FROM
[C:\Users\admin\Desktop\TestPipe.txt]
(txt, codepage is 1252, embedded labels, delimiter is '|', msq) where len(A_MyKey)&amp;lt;=3;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 10:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601754#M596149</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-07-12T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601900#M596150</link>
      <description>&lt;P&gt;Hi Frank&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, sorry if I mislead you&amp;nbsp;bit, the actually real Description field is a free text field.&amp;nbsp;I created the data for the file for demonstration purposes, plus so as not to expose the real&amp;nbsp;data for obvious reasons. So we can't rely on the Description text structure being similar for each record.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1601900#M596150</guid>
      <dc:creator>Neil_B</dc:creator>
      <dc:date>2019-07-12T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1602009#M596151</link>
      <description>&lt;P&gt;what about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test:
LOAD 
	 RowNo() as Row,
	 A_MyKey,
     [Open/Closed], 
     New, 
     Status, 
     [Line Number], 
     Description,
     Reference,
     Profession     
FROM
[C:\Users\admin\Desktop\TestPipe.txt]
(txt, codepage is 1252, embedded labels, delimiter is '|', msq);

NoConcatenate

Load RowNo() as Row,
	 A_MyKey,
     [Open/Closed], 
     New, 
     Status, 
     [Line Number],      
     Profession,  	     
	 if(Reference='',  Description &amp;amp;' '&amp;amp;Previous(A_MyKey)&amp;amp;' '&amp;amp;Previous(Previous(A_MyKey)) ,Description) as  Description,
     if(Reference='',Previous(Previous([Open/Closed])),Reference) as Reference
Resident Test Where Description&amp;lt;&amp;gt;'' Order by Row desc; DROP Table Test;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 13 Jul 2019 09:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1602009#M596151</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-07-13T09:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text Files with Pipe delimited</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1603225#M596152</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;very much, I do believe&amp;nbsp;that is the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 13:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Text-Files-with-Pipe-delimited/m-p/1603225#M596152</guid>
      <dc:creator>Neil_B</dc:creator>
      <dc:date>2019-07-17T13:23:14Z</dc:date>
    </item>
  </channel>
</rss>

