<?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: Re: Strange Load Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628103#M1094520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it isn't specific records or files giving me the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the 2 images attached. In the "May 2014 correct" image, in the top right I have May 2014 selected - this is one specific file (field is created based on file date). Looking at the charts and other objects, there are no problems with this file - all the Policy Types &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;available for selection&lt;/STRONG&gt;&lt;/SPAN&gt; are valid policy types, and the error descriptions in the top left straight table are also all valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I took that screenshot I reloaded the file (as you can see in image 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right after the reload, while I&lt;SPAN style="text-decoration: underline;"&gt; still have May 2014 (same file, same records) selected&lt;/SPAN&gt;, you can now see in the 2nd image that the records are now all wrong, showing error descriptions and policy types that are not correct based on the fixed length format of the file - it's as if the load script completely ignored the positions I told it each fields were in and just randomly decided how many characters go where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did nothing between these two images except reload the same data.... so based on that it cannot be specific records or a specific file with a problem. Does that make sense or am I being stupid? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 11:36:37 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2014-05-13T11:36:37Z</dc:date>
    <item>
      <title>Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628099#M1094516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the weirdest thing I have ever seen with QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data from fixed length text files into a module. All of a sudden after a reload this morning, all my fields were messed up (as if the source files changed) - please see the "wrong" image attached, you'll notice the "error description" and other fields make no sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I just reload again (without making ANY changes to the load script or the source files or anything), everything is fine (see the "right" image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've reloaded about 10 times now and sometimes it's fine and sometimes not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen something like this before? Am I crazy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my load script, which I have not touched at all between loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(@2:21,2)='09',right(@2:21,19),@2:21) as [Account no], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @22:41 as [Policy No], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @42:46 as [Policy Type], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@47:47='B','Back-Dated', if(@47:47='M','Monthly','Error')) as [Premium Type], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(DATE#( @48:58, 'DD-MMM-YY')) as [Premium Date], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; round(@59:65/100,0.01) as [Premium Amount], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@66:68='000','',@66:68) as [Error Code], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='','Posted','Rejected') as [Result],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='',null(),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='More premiums found than the number of allowed premiums per policy','More premiums than allowed',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='Account number does not exist','Invalid Account Number',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='Account status code on account prevent charge of fee','Invalid Account Status',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='Block code on account prevent charge of fee','Block on Account',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='CD status on account prevent charge of fee','Invalid CD Status',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='No policy found for account','No Policy Found for Account',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='OTB - Insufficient credit available','OTB - Insufficient Credit Available',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@69:n='Premium already charged for month','Premium Already Charged for Month',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @69:n))))))))) as [Reject Reason],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(filetime()-1) as [File Date],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @69:n as [Error Description]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;(fix, codepage is 1252, header is 1 lines)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where @1:1 = 'D';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 14:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628099#M1094516</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2014-05-09T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628100#M1094517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gerhard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some time ago i had similiar problem. In my case it was some special characters in loaded data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 21:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628100#M1094517</guid>
      <dc:creator />
      <dc:date>2014-05-09T21:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628101#M1094518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've checked and there are no special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently load about 10 different files (1 per month) and the funny thing is the problem is with a different file each time. I load, then the December file is all messed up, then I do nothing except reload then the May and Feb files are all messed up and the December files is fine. This is crazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run this exact same module on my laptop with no problems, but on this particular PC it causes these issues - the only differences between the computers are 32 versus 64 bit systems. But on the new computer I even built the module again from scratch (so it's not the exact same file) and the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never seen anything so nonsensical&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 06:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628101#M1094518</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2014-05-13T06:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628102#M1094519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I have had similar problems, it has always been a case of special characters or incomplete quotations (missing quotes). I would do the following to debug:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Verify that your files really are ANSI CP 1252 and not Unicode or UTF8.&lt;/LI&gt;&lt;LI&gt;Add some fields to the load:&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RecNo() as RecordNumber&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FileName() as FileName&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then find out on which record your data starts misbehaving. And take a look in the text file on this record.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 11:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628102#M1094519</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-13T11:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628103#M1094520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it isn't specific records or files giving me the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the 2 images attached. In the "May 2014 correct" image, in the top right I have May 2014 selected - this is one specific file (field is created based on file date). Looking at the charts and other objects, there are no problems with this file - all the Policy Types &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;available for selection&lt;/STRONG&gt;&lt;/SPAN&gt; are valid policy types, and the error descriptions in the top left straight table are also all valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I took that screenshot I reloaded the file (as you can see in image 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right after the reload, while I&lt;SPAN style="text-decoration: underline;"&gt; still have May 2014 (same file, same records) selected&lt;/SPAN&gt;, you can now see in the 2nd image that the records are now all wrong, showing error descriptions and policy types that are not correct based on the fixed length format of the file - it's as if the load script completely ignored the positions I told it each fields were in and just randomly decided how many characters go where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did nothing between these two images except reload the same data.... so based on that it cannot be specific records or a specific file with a problem. Does that make sense or am I being stupid? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 11:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628103#M1094520</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2014-05-13T11:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628104#M1094521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try to find exact field and exact row, which causes problem.&lt;/P&gt;&lt;P&gt;In my case it was something in dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 11:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628104#M1094521</guid>
      <dc:creator />
      <dc:date>2014-05-13T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628105#M1094522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; the behavior you will get if you have strange characters. The Load script may interpret a strange character as carriage return (new line) and then you can get a number of subsequent errors caused by the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still claim that you should try to identify on which row the first error occurs. E.g. by creating a table box with RecordNumber as first column (and sorted by this) and [Error Description] as second column. Then step your way through the records to find where the first error is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628105#M1094522</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-13T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Strange Load Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628106#M1094523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your proposal but because there are multiple files I did not use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RecNo(), I rather used RowNo(), which creates a unique row number for each record across all files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moment I added this field to the load script everything was fixed - I've now reloaded a few times and all is well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Load-Problem/m-p/628106#M1094523</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2014-05-13T12:06:11Z</dc:date>
    </item>
  </channel>
</rss>

