<?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: Active Directory load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/1629150#M446331</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; Its commented. But&amp;nbsp;even if&amp;nbsp; not the result remain unchanged as this is preceding load. And&amp;nbsp; &amp;gt;1000 rows retrieved from the AD directory before this step.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 14:52:52 GMT</pubDate>
    <dc:creator>jt422605</dc:creator>
    <dc:date>2019-09-27T14:52:52Z</dc:date>
    <item>
      <title>Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645134#M236414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm loading data from Active Directory.&amp;nbsp; The user select looks more or less like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; distinguishedName,&lt;BR /&gt; cn,&lt;BR /&gt; displayName,&lt;BR /&gt; mail&lt;BR /&gt;FROM '$(vLDAP)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: is it possible to load only the users who belong to a certain Group or several Groups before loading Groups themsleves?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645134#M236414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645135#M236415</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;I would think you could use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM ''LDAP://DC= test.com'' WHERE memberOf= 'CN=[groupname]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645135#M236415</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2014-06-09T15:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645136#M236416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the first thing I've tried, and it returns no records.&amp;nbsp; (I checked Group names when loading Groups separately).&lt;/P&gt;&lt;P&gt;I also tried to use "like":&lt;BR /&gt;WHERE memberOf like 'CN= ABC%',&lt;BR /&gt;But in this case just getting error on reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645136#M236416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645137#M236417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I do that.&amp;nbsp; Tough to be fair I am sure I got this from Rob Wunderlich.&amp;nbsp; Modified slightly to meet my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADGroups:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; name as GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; distinguishedName as GroupDN,&lt;/P&gt;&lt;P&gt;&amp;nbsp; info as GroupInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL select &lt;/P&gt;&lt;P&gt;&amp;nbsp; name, distinguishedName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; info&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM 'LDAP://$(RootDse)'&amp;nbsp; WHERE objectCategory='group'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND name = 'QV_*'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645137#M236417</guid>
      <dc:creator>erikzions</dc:creator>
      <dc:date>2014-06-09T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645138#M236418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way Bill posted is the way I do it and it works for me. Check out &lt;A href="http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/"&gt;Qlikview Cookbook: Load Users and Groups from Active Directory&lt;/A&gt; for sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645138#M236418</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-09T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645139#M236419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You syntax works but it doesn't answer my question - can I &lt;STRONG&gt;load users that belong to a particular group without loading the group&lt;/STRONG&gt; itself?&lt;/P&gt;&lt;P&gt;Certainly I can load all, and remove the data I don't need, but it is rather inefffective...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 18:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645139#M236419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T18:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645140#M236420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current "AD load" app is in fact based on your older version, the one with macro.&amp;nbsp; I've downloaded your newer "no-macro" version and going to try it.&amp;nbsp; If nothing else, the absence of macro has value by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 19:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645140#M236420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T19:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645141#M236421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&amp;nbsp; Again I got this from Rob, so you can refer to his code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT TO 'Provider=ADsDSOObject';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; ADGroups:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; name as GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; distinguishedName as GroupDN,&lt;/P&gt;&lt;P&gt;&amp;nbsp; info as GroupInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL select &lt;/P&gt;&lt;P&gt;&amp;nbsp; name, distinguishedName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; info&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM 'LDAP://$(RootDse)'&amp;nbsp; WHERE objectCategory='group'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND name = 'QV_*'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT DO WHEN ScriptError &amp;gt; 1 // Stop loop if SELECT has error&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT DO WHEN NoOfRows('nameTable') = 0;&amp;nbsp; // Stop loop if SELECT returns nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT DO WHEN peek('GroupName') = '$(arg)';&amp;nbsp; // If the last "name" read is EQ to arg -- no more entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET arg=peek('GroupName'); // Set the arg to the last "name" read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET arg= NoOfRows('ADGroups');&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('ADGroups') - 1&lt;/P&gt;&lt;P&gt;LET Group = peek('GroupDN', $(i), 'ADGroups');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ADGroupMembers:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; distinguishedName as UserDN, '$(Group)' as GroupDN, name, userPrincipalName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; left(userPrincipalName,(FindOneOf(userPrincipalName,'@')-1)) as zNumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT distinguishedName, name, userPrincipalName&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM 'LDAP://$(RootDse)' WHERE MemberOf='$(Group)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 19:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645141#M236421</guid>
      <dc:creator>erikzions</dc:creator>
      <dc:date>2014-06-09T19:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645142#M236422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The no-macro version runs a lot slower -- but it work in server reloads, which is usually critical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 19:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645142#M236422</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-09T19:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645143#M236423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, load the groups I need first, and get members after this.&amp;nbsp; Looks like working, after some script cleanup, but sometimes fails depending on groups.&amp;nbsp; Something to figure out...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 20:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645143#M236423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T20:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645144#M236424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is slow, but in most cases it's not the highest priority.&lt;/P&gt;&lt;P&gt;So, If I load Groups (limited subset) in the beginning, followed by the Group members, it should be close enough, and with reasonable relaod time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 20:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645144#M236424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645145#M236425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why when I run the script to load data from AD, the same script works for some customers' server but not the others?&lt;/P&gt;&lt;P&gt;I got this error message for a server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11/12/2014 16:36:04: 0014&amp;nbsp; select &lt;BR /&gt;11/12/2014 16:36:04: 0015&amp;nbsp;&amp;nbsp;&amp;nbsp; name, distinguishedName&amp;nbsp; &lt;BR /&gt;11/12/2014 16:36:04: 0016&amp;nbsp;&amp;nbsp; FROM 'LDAP://customerserver.com'&amp;nbsp; WHERE objectCategory='person'&lt;BR /&gt;11/12/2014 16:36:04:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: distinguishedName, name,&amp;nbsp; &lt;BR /&gt;11/12/2014 16:36:04:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVX_UNEXPECTED_END_OF_DATA: &lt;BR /&gt;11/12/2014 16:36:04:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: OLEDB read failed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a driver issue? How can we fix it?&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;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 03:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645145#M236425</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2014-12-11T03:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645146#M236426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see this problem occasionally and work around it by adding a &lt;/P&gt;&lt;P&gt;FIRST 1000 LOAD&lt;/P&gt;&lt;P&gt;before the SQL SELECT. See:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN&gt;Load Users and Groups from Active Directory &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/" rel="nofollow"&gt;http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645146#M236426</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-11T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645147#M236427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645147#M236427</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2014-12-11T23:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645148#M236428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr. Wunderlich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used your script for reading our Active Directory and I had to use the "first"-statement, because of the "QVX_UNEXPECTED_END_OF_DATA".&lt;/P&gt;&lt;P&gt;In my opinion there is a small bug which caused that not all records where loaded and some where loaded two or three times (I didn't use "distinct"). If I load all users I have a difference of nearly 5.000 entries. &lt;/P&gt;&lt;P&gt;My solution was to add an "ORDER BY name;" at the end of the SQL-statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645148#M236428</guid>
      <dc:creator>peterwh</dc:creator>
      <dc:date>2015-04-22T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645149#M236429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. The code as posted on QlikviewCookbook.com does include the "order by name" for the users. I note it doesn't for the groups. Is it the groups you were having trouble with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645149#M236429</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-04-22T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645150#M236430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just downloaded the file from &lt;A href="http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/"&gt;http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/&lt;/A&gt; (it's Revision = 1) and I've found no "order by" not even on the "Users"-tab. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the problem as I read the users from AD. I have to extract data from 3 ADs and the last one was the only one with the 1000-restriction. So I looked for a solution other than contacting the AD-Administrators for setting the "MaxPageSize" to a higher value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 06:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645150#M236430</guid>
      <dc:creator>peterwh</dc:creator>
      <dc:date>2015-04-24T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645151#M236431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just found another problem in my setup:&lt;/P&gt;&lt;P&gt;the generated qvd's have an invalid xml-header. If I load the generated QVDs in QlikView theres no problem. If I try to open a qvd with QViewer, I get the message, that it has an invalid xml-header. I also get an error, if I load the QVD-Header in QlikView with something like that:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;LOAD&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(QVD_Id)'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as QVD_Id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatorDoc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoOfRecords&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(QVD)] (XmlSimple, Table is [QvdTableHeader]);&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it comes from "LET arg=chr(01)". I've changed it to "LET arg=chr(33)" and now I don't have the mentioned problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/645151#M236431</guid>
      <dc:creator>peterwh</dc:creator>
      <dc:date>2015-04-24T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/1627060#M446181</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&amp;nbsp;- I am following your script but still&amp;nbsp; cannot get rid off the 1000 row limit ..&amp;nbsp;&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;EQ_QVX_SIZELIMIT_EXCEEDED: The size limit for this request was exceeded. This query was stopped because it tried to read beyond a restricted limit. One of the tables in the query has a limit of maximum 1000 rows.&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;What going wrong - I am not sure.. can you please suggest&amp;nbsp; ?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;LET arg=chr(01);	// Set search start name to a very low value
DO 
	ADUsers:
	//FIRST 1000		// Workaround for undefined SQL error. 
	LOAD DISTINCT
	*
	;
	SQL select 
	// Add addtional Fields as required
	 displayName,employeeID,distinguishedName,mail,objectsid, userprincipalname, cn
    ,telephoneNumber,streetaddress, pager, company, title	// Fields to select 
	FROM 'LDAP://$(RootDse)'  
    WHERE  
    objectCategory='person'  AND name&amp;gt;'$(arg)'
        order by name;
        	// Get rows where "name" is GT the arg
	
	EXIT DO WHEN ScriptError &amp;gt; 1	// Stop loop if SELECT has error
	EXIT DO WHEN NoOfRows('nameTable') = 0;  // Stop loop if SELECT returns nothing
	EXIT DO WHEN peek('UserName') = '$(arg)';  // If the last "name" read is EQ to arg -- no more entries
	
	LET arg=peek('UserName');	// Set the arg to the last "name" read
LOOP&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2019 17:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/1627060#M446181</guid>
      <dc:creator>jt422605</dc:creator>
      <dc:date>2019-09-23T17:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory load</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/1628747#M446291</link>
      <description>&lt;P&gt;Is&amp;nbsp;&lt;/P&gt;&lt;P&gt;//FIRST 1000&lt;/P&gt;&lt;P&gt;commented or not in your script?&lt;/P&gt;&lt;P&gt;-Rob&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 17:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Directory-load/m-p/1628747#M446291</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-09-26T17:13:01Z</dc:date>
    </item>
  </channel>
</rss>

