<?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: load log file will stop at half in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575735#M442520</link>
    <description>&lt;P&gt;Hi, I tried your solution I read the whole line in a table, I replaced the characters "with the blank and then I reread the line from the table but how can I tell it that there are 8 fields separated by shift now? My idea was to save the monocolumn table in a file and reread it but how do I in that case tell him that there are 8 columns to save with the shift in the middle?&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 07:24:06 GMT</pubDate>
    <dc:creator>Daora342423</dc:creator>
    <dc:date>2019-05-02T07:24:06Z</dc:date>
    <item>
      <title>load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1574962#M442462</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have a problem, I have to load the lines of a log file but when I load it in the usual way, if in the file there is a field with "something" inside it qlik blocks loading to the previous line. Do you know if there is a system or 1 option to insert between those to eliminate the header or give it the type of separator? attached I send you what I did:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tabella:&lt;BR /&gt;LOAD @1 as Server_Started,&lt;BR /&gt;@2 as Timestamp,&lt;BR /&gt;@3 as Document,&lt;BR /&gt;@4 as Type,&lt;BR /&gt;@5 as User,&lt;BR /&gt;@6 as Message,&lt;BR /&gt;@7 as Id,&lt;BR /&gt;@8 as Session&lt;BR /&gt;FROM D:\Qlikview_Log\Audit_QLIK-NPRINTING_$(v_anno)-$(v_mese).log (txt, codepage is 1252, no labels, delimiter is ' ', msq, header is 1 lines);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thx a lot&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1574962#M442462</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2024-11-16T03:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1574967#M442464</link>
      <description>&lt;BR /&gt;now that I reread it maybe it's not very understandable, I don't know what's in the quotation marks ("") so I would like to tell the program: 'if you find the quotation marks load it the same' or 'if you find the quotes, skip the line and keep loading</description>
      <pubDate>Tue, 30 Apr 2019 11:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1574967#M442464</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-04-30T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575071#M442478</link>
      <description>&lt;P&gt;I'm not really sure if I understand your issue. If a txt-file isn't loaded completely the cause is often the msq-statement within the fileformat or an EOF char which could be handled with no EOF.&lt;/P&gt;&lt;P&gt;But because of your specified space as delimiter I assume that at least @6 contains some spaces within it and/or also some quotes. If this is the case the fileformat couldn't be defined appropriate and you need some additionally steps to clean your data - maybe by pre-loading the file with a fix length, like:&lt;/P&gt;&lt;P&gt;LOAD [@1:n] FROM Source.txt (fix, codepage is 1252);&lt;/P&gt;&lt;P&gt;and there counting/replacing your delimiter/quotes chars so that you could apply a "classical" fileformat-statement again.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575071#M442478</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-04-30T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575085#M442479</link>
      <description>Exactly, the problem is in the data and in the formatting, the data that gives problems is this (relative to the column @ 6):&lt;BR /&gt;Search: "666001"&lt;BR /&gt;&lt;BR /&gt;this string is contained in column @ 6, the delimiter for each field is the shift. Between one field and another there may be one or two shifts, this is unspecified and the string in the @ 6 field does not always have the same content or the same length.&lt;BR /&gt;&lt;BR /&gt;I tried to modify the string and write: Search: "666001&lt;BR /&gt;&lt;BR /&gt;in this way it does not give problems and loads everything but if it finds another string inside the double quotes ("*" for example) it stops again.&lt;BR /&gt;&lt;BR /&gt;I cannot modify the file or its formatting because it is generated every day every day for a month so I have to solve it in loading but the command does not work either&lt;BR /&gt;where not WildMatch (@ 6, '"*"')</description>
      <pubDate>Tue, 30 Apr 2019 13:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575085#M442479</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-04-30T13:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575091#M442481</link>
      <description>&lt;P&gt;Depending on the varity of your real data it could be quite hard to handle all possibilities but with a multiple step approach in a preceeding-chain most of them should be solvable. This means something like this:&lt;/P&gt;&lt;P&gt;// LOAD replace(F, ' ', '|') as F;&lt;BR /&gt;LOAD replace(F, '"', '') as F;&lt;BR /&gt;LOAD replace(F, ': "', ':"') as F;&lt;BR /&gt;LOAD [@1:n] as F FROM Source.txt (fix, codepage is 1252);&lt;/P&gt;&lt;P&gt;Also helpful could be to count the number of the delimiter chars and to read their position respectively to find any other definite/unique values within your string/fields to be able to apply mid/left/right-functions to adjust the content.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575091#M442481</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-04-30T13:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575096#M442482</link>
      <description>&lt;BR /&gt;I tried to make a replace while reading the column, in this case if in the column @ 6 there is a "I replace it with nothing ('') but also using this script:&lt;BR /&gt;&lt;BR /&gt;table:&lt;BR /&gt;LOAD @ 1 as Server_Started,&lt;BR /&gt;@ 2 as Timestamp,&lt;BR /&gt;@ 3 as Document,&lt;BR /&gt;@ 4 as Type,&lt;BR /&gt;@ 5 as User,&lt;BR /&gt;replace (@ 6, '"', '') as Message,&lt;BR /&gt;@ 7 as Id,&lt;BR /&gt;@ 8 as Session&lt;BR /&gt;FROM &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; Qlikview_Log Audit_QLIK-NPRINTING _ $ (v_anno) - $ (v_mese) _v2.log (txt, code page is 1252, no labels, delimiter is '', msq, header is 1 lines);&lt;BR /&gt;&lt;BR /&gt;it continues to give me the same result, it stops as soon as it finds "*" and instead of replacing it during loading it blocks it</description>
      <pubDate>Tue, 30 Apr 2019 13:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575096#M442482</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-04-30T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575142#M442484</link>
      <description>&lt;P&gt;This won't work because the fileformat is used at first and therefore the afterwards following replacement-statements run against the wrong data. This means you need at first to clean the data before you could load them into your target-table.&lt;/P&gt;&lt;P&gt;Take a look on my preceeding-example from above and develop it step by step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575142#M442484</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-04-30T14:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575160#M442485</link>
      <description>mmm I understand, if I understand your example, you would like me to load all the string in one field first and then do the replace (right?), in this case it's not possible, I was explicitly asked to load all the column per column unfortunately ... having restrictions due to the customer's risk and having tried them all I don't get an idea to solve it ...&lt;BR /&gt;&lt;BR /&gt;if you could change with replace the field before loading would be easy ...</description>
      <pubDate>Tue, 30 Apr 2019 15:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575160#M442485</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-04-30T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575195#M442487</link>
      <description>&lt;P&gt;Without a valid delimiter and valid quotes you don't have a valid data-structure within your files and there is no possibility to load the data "column per column" - at least not in Qlik from a txt (I doubt that other tools provide more options). If you could influence the datastructure in any way maybe in regard to the output-format so that it comes as xlsx, xml or as a sql-db it would be probably simplify your task.&lt;/P&gt;&lt;P&gt;Nevertheless I think my suggestion should work and I don't see much what could violate your customer ristrictions. Yes its loading at first everything into a singe field, adjusting the various issues and afterward you could load from this field with &lt;STRONG&gt;from_field&lt;/STRONG&gt; or you stores the table as txt again and load the data from there.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575195#M442487</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-04-30T15:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575735#M442520</link>
      <description>&lt;P&gt;Hi, I tried your solution I read the whole line in a table, I replaced the characters "with the blank and then I reread the line from the table but how can I tell it that there are 8 fields separated by shift now? My idea was to save the monocolumn table in a file and reread it but how do I in that case tell him that there are 8 columns to save with the shift in the middle?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 07:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575735#M442520</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-05-02T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: load log file will stop at half</title>
      <link>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575745#M442521</link>
      <description>Done!!!! thx for help</description>
      <pubDate>Thu, 02 May 2019 07:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-log-file-will-stop-at-half/m-p/1575745#M442521</guid>
      <dc:creator>Daora342423</dc:creator>
      <dc:date>2019-05-02T07:38:56Z</dc:date>
    </item>
  </channel>
</rss>

