<?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 Active Directory Report Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514671#M692447</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;First time poster and relative newcomer to Qlikview so please go easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a report that shows the content of&amp;nbsp; Active DIrectory.&amp;nbsp; This report is manually reloaded when required by all three members of my team, myself running Win 7 and my two collegues who both run XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have recently upgraded to a new V11 SR2 environment from V9 and now only the two members of our team still running XP can reload the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run the code below I get the error shown in the attached screen grab.&amp;nbsp; When I reload the connection seems to connect ok and then the reload fails when trying to retreive the first of the data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice or suggestions would be gratefully received as to how to resolve the issue as we plan to upgrade all our client machines Windows 7 and we all need to be able to reload this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13745927650069416" jivemacro_uid="_13745927650069416"&gt;&lt;P&gt;SET RootDse = 'DC=**company**, DC=**domain**';&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Read names from Active Directory using AdsDSO.&lt;BR /&gt;Active Directory returns a maximum number (pagesize) of rows per call. &lt;BR /&gt;The loop below will get all the rows regardless of the pagesize. &lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CONNECT TO 'Provider=ADsDSOObject';&lt;/P&gt;&lt;P&gt;LET arg=chr(01); // Set search start name to a very low value&lt;BR /&gt;DO &lt;BR /&gt; UserTable:&lt;BR /&gt;&amp;nbsp; LOAD &lt;BR /&gt;&amp;nbsp; displayName as DisplayName,&lt;BR /&gt;&amp;nbsp; name as UserName,&lt;BR /&gt;&amp;nbsp; distinguishedName as UserDN,&lt;BR /&gt;&amp;nbsp; upper(sAMAccountName) as %KeyLanID,&lt;BR /&gt;&amp;nbsp; sAMAccountName As SamUser&lt;BR /&gt; ;&lt;BR /&gt; SQL select &lt;BR /&gt;&amp;nbsp; name,displayName,sAMAccountName, distinguishedName&amp;nbsp; // Fields to select &lt;BR /&gt; FROM 'LDAP://$(RootDse)'&amp;nbsp; WHERE objectCategory='person' &lt;BR /&gt;&amp;nbsp; AND name&amp;gt;'$(arg)'; // Get rows where "name" is GT the arg&lt;BR /&gt; &lt;BR /&gt; EXIT DO WHEN ScriptError &amp;gt; 1 // Stop loop if SELECT has error&lt;BR /&gt; EXIT DO WHEN NoOfRows('nameTable') = 0;&amp;nbsp; // Stop loop if SELECT returns nothing&lt;BR /&gt; EXIT DO WHEN peek('UserName') = '$(arg)';&amp;nbsp; // If the last "name" read is EQ to arg -- no more entries&lt;BR /&gt; &lt;BR /&gt; LET arg=peek('UserName'); // Set the arg to the last "name" read&lt;BR /&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 15:47:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-23T15:47:20Z</dc:date>
    <item>
      <title>Active Directory Report Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514671#M692447</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;First time poster and relative newcomer to Qlikview so please go easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a report that shows the content of&amp;nbsp; Active DIrectory.&amp;nbsp; This report is manually reloaded when required by all three members of my team, myself running Win 7 and my two collegues who both run XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have recently upgraded to a new V11 SR2 environment from V9 and now only the two members of our team still running XP can reload the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run the code below I get the error shown in the attached screen grab.&amp;nbsp; When I reload the connection seems to connect ok and then the reload fails when trying to retreive the first of the data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice or suggestions would be gratefully received as to how to resolve the issue as we plan to upgrade all our client machines Windows 7 and we all need to be able to reload this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13745927650069416" jivemacro_uid="_13745927650069416"&gt;&lt;P&gt;SET RootDse = 'DC=**company**, DC=**domain**';&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Read names from Active Directory using AdsDSO.&lt;BR /&gt;Active Directory returns a maximum number (pagesize) of rows per call. &lt;BR /&gt;The loop below will get all the rows regardless of the pagesize. &lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CONNECT TO 'Provider=ADsDSOObject';&lt;/P&gt;&lt;P&gt;LET arg=chr(01); // Set search start name to a very low value&lt;BR /&gt;DO &lt;BR /&gt; UserTable:&lt;BR /&gt;&amp;nbsp; LOAD &lt;BR /&gt;&amp;nbsp; displayName as DisplayName,&lt;BR /&gt;&amp;nbsp; name as UserName,&lt;BR /&gt;&amp;nbsp; distinguishedName as UserDN,&lt;BR /&gt;&amp;nbsp; upper(sAMAccountName) as %KeyLanID,&lt;BR /&gt;&amp;nbsp; sAMAccountName As SamUser&lt;BR /&gt; ;&lt;BR /&gt; SQL select &lt;BR /&gt;&amp;nbsp; name,displayName,sAMAccountName, distinguishedName&amp;nbsp; // Fields to select &lt;BR /&gt; FROM 'LDAP://$(RootDse)'&amp;nbsp; WHERE objectCategory='person' &lt;BR /&gt;&amp;nbsp; AND name&amp;gt;'$(arg)'; // Get rows where "name" is GT the arg&lt;BR /&gt; &lt;BR /&gt; EXIT DO WHEN ScriptError &amp;gt; 1 // Stop loop if SELECT has error&lt;BR /&gt; EXIT DO WHEN NoOfRows('nameTable') = 0;&amp;nbsp; // Stop loop if SELECT returns nothing&lt;BR /&gt; EXIT DO WHEN peek('UserName') = '$(arg)';&amp;nbsp; // If the last "name" read is EQ to arg -- no more entries&lt;BR /&gt; &lt;BR /&gt; LET arg=peek('UserName'); // Set the arg to the last "name" read&lt;BR /&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514671#M692447</guid>
      <dc:creator />
      <dc:date>2013-07-23T15:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Report Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514672#M692448</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;Have you found a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514672#M692448</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-09-27T11:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Report Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514673#M692449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't rename any fields when you read the active directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead create a reident table and rename and then drop the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-Report-Issue/m-p/514673#M692449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-10T11:31:44Z</dc:date>
    </item>
  </channel>
</rss>

