<?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 Issue with Section Access - resident load and ntname in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345507#M702603</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;Looking at implementing Section access via a resident load - my code below was working fine until I added the NTNAME field; however when I open the script the document is not recognising my account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the table that I stored into the attached text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Access;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTNAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(ACCESS='USER','PRODUCTKEY') AS OMIT Resident SecurityNew;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance - Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 11:50:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-11T11:50:58Z</dc:date>
    <item>
      <title>Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345507#M702603</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;Looking at implementing Section access via a resident load - my code below was working fine until I added the NTNAME field; however when I open the script the document is not recognising my account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the table that I stored into the attached text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Access;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTNAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(ACCESS='USER','PRODUCTKEY') AS OMIT Resident SecurityNew;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance - Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 11:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345507#M702603</guid>
      <dc:creator />
      <dc:date>2012-07-11T11:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345508#M702606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and worked fine. First using "ADMIN" user with USERID. Then, I added myself to NTNAME as you, reloaded and also worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find the tiny app I used that worked for me (Section Access code commented just in case you couldn't open it for the first time).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 12:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345508#M702606</guid>
      <dc:creator />
      <dc:date>2012-07-11T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345509#M702607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Borja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, it looks like an issue with the table being loaded via a resident load and then being dropped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the data is loaded in via file import this does circumnavigate the issue, however when I attempt to clear the file it then fails again.&amp;nbsp; any ideas as ideally I don't want passwords lying around in an unencrypted file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SecurityNew into SecurityNew.qvd (qvd); //write table to a local file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Access;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTNAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OMIT&lt;/P&gt;&lt;P&gt;FROM SecurityNew.qvd (qvd); //import local file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//However when I add this afterwards, it then fails to load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecurityClear:&lt;/P&gt;&lt;P&gt;LOAD * inline [Cleared]; //create a blank table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SecurityClear into SecurityClear.qvd (qvd); //overwrite the existing file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables SecurityNew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SecurityClear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Just noticed an error with my above code - overwriting the wrong file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;Amended this to the correct file name and used a txt file and this worked (qvd still didn't work). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; not an ideal solution as I'd like to use resident load instead of storing locally so if anyone has any ideas I'd appreciate it.&amp;nbsp; Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 13:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345509#M702607</guid>
      <dc:creator />
      <dc:date>2012-07-11T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345510#M702608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be a side effect of the way that QlikView will auto concatenate tables with exactly the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I presume that SecurityNew is in an identical structure to the Section Access table?&amp;nbsp; When you do the Section Access this will then append to the existing table.&amp;nbsp; When you drop Security New at the end you are at that point dropping your Section Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding an extra dummy column to both your SecurityNew and SecurityClear tables and see if that fixes the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 19:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345510#M702608</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-07-16T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345511#M702610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply; I have tried your suggestion but no joy I'm afraid - here's my revised code following the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecurityNew:&lt;/P&gt;&lt;P&gt;LOAD USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTNAME as SHAZAM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(ACCESS='USER','PRODUCTKEY') AS OMIT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Test&lt;/P&gt;&lt;P&gt;Resident SecurityRaw where (match(SecDept,DEPT,'*') or SecProd=PRODUCT) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Access;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHAZAM as NTNAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OMIT&lt;/P&gt;&lt;P&gt;Resident SecurityNew;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Access;&lt;/P&gt;&lt;P&gt;LOAD USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCTKEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHAZAM as NTNAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OMIT&lt;/P&gt;&lt;P&gt;Resident SecurityNew;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTION Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//remove final security tables&lt;/P&gt;&lt;P&gt;DROP Tables SecurityNew;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 20:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345511#M702610</guid>
      <dc:creator />
      <dc:date>2012-07-16T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Section Access - resident load and ntname</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345512#M702611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Section Access doesn't like you doing too much manipulation of the data when you bring it.&amp;nbsp; Can you try doing the 'IF(ACCESS='USER','PRODUCTKEY') as OMIT,' when you are building SecurityNew, rather than when you are doing the RESIDENT load from it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shouldn't have to persist anything to disk to get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 20:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Section-Access-resident-load-and-ntname/m-p/345512#M702611</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-07-16T20:50:20Z</dc:date>
    </item>
  </channel>
</rss>

