<?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 Extract all users from AD group and facing error when I extract when there are more than 1000 users. in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Extract-all-users-from-AD-group-and-facing-error-when-I-extract/m-p/1915441#M10515</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have issue extracting more than 1000 users from AD group with below error message.&lt;/P&gt;
&lt;P&gt;Is there somewhere can we edit this parameter to change to 10000? I have more than 3300+ user at the moment and it will increase over time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;20220406T134808.948+0200 EQ_QVX_SIZELIMIT_EXCEEDED: The size limit for this request was exceeded.&lt;BR /&gt;20220406T134808.948+0200 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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached sample code below . (Code is used from Qlikview Cookbook)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;//AD Members Extract from Application and respective AD groups

ApplicationGroup:
LOAD distinct
    'ONEVIEW' as "Application Name",
    'APP-GLOBAL-OneView-NationalUsers' as ADGroup //Provide AD Group name
AutoGenerate (1);


LIB CONNECT TO 'LDAP_DSO';
SET RootDse = 'DC=domain, DC=com';//enter domain


For i = 0 to NoOfRows('ApplicationGroup') - 1

LET vGroup = peek('ADGroup', $(i), 'ApplicationGroup');
LET vAppName= peek('Application Name', $(i), 'ApplicationGroup');
LET vDomain='DOMAIN';

Group:
LOAD 
		'$(vAppName)' 				as [App Name],
        upper(trim(name))    		as GROUPNAME,
        distinguishedName    		as GroupDN, 
        upper(trim(displayname))    as GroupDisplayName
         ;
SQL select  
          name,
          distinguishedName,
          displayname        
FROM 'LDAP://$(RootDse)'  
WHERE objectCategory='group' 
AND name='$(vGroup)';
NEXT i;

For i = 0 to NoOfRows('Group') - 1
LET vUserGroup = peek('GroupDN', $(i), 'Group');
LET vAppName1=peek('App Name', $(i), 'Group');
LET vGroupDisplayName=peek('GroupDisplayName', $(i), 'Group');


GroupsMembers:
LOAD 
//      '$(vAppName1)'
//      &amp;amp;'-'&amp;amp;applymap('TeamMapping','$(vDomain)' &amp;amp; '\' &amp;amp;upper(TextBetween(distinguishedName,'=', ',')),'Users')
//      &amp;amp;'-'&amp;amp;'$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) as Key,
      '$(vAppName1)' as [App Name],
      '$(vGroupDisplayName)' as GroupDisplayName,
      '$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) AS NTNAME,
      '$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) AS USERID,            
      Capitalize(givenname) &amp;amp;' '&amp;amp;Capitalize(sn) AS UserFullName,
      distinguishedName as UserDN,
       '$(vUserGroup)' as GroupDN,
       co as Country,
       title as Title,
       mail as Email;
 SELECT  
     distinguishedName,
     givenname,
     sn,
     co,
     title,
     mail
FROM 'LDAP://$(RootDse)' 
WHERE objectCategory='person' 
AND MemberOf='$(vUserGroup)'
;
Next i;
drop table Group;

exit script&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 16:44:18 GMT</pubDate>
    <dc:creator>kishore3k</dc:creator>
    <dc:date>2022-04-06T16:44:18Z</dc:date>
    <item>
      <title>Extract all users from AD group and facing error when I extract when there are more than 1000 users.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Extract-all-users-from-AD-group-and-facing-error-when-I-extract/m-p/1915441#M10515</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have issue extracting more than 1000 users from AD group with below error message.&lt;/P&gt;
&lt;P&gt;Is there somewhere can we edit this parameter to change to 10000? I have more than 3300+ user at the moment and it will increase over time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;20220406T134808.948+0200 EQ_QVX_SIZELIMIT_EXCEEDED: The size limit for this request was exceeded.&lt;BR /&gt;20220406T134808.948+0200 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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached sample code below . (Code is used from Qlikview Cookbook)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;//AD Members Extract from Application and respective AD groups

ApplicationGroup:
LOAD distinct
    'ONEVIEW' as "Application Name",
    'APP-GLOBAL-OneView-NationalUsers' as ADGroup //Provide AD Group name
AutoGenerate (1);


LIB CONNECT TO 'LDAP_DSO';
SET RootDse = 'DC=domain, DC=com';//enter domain


For i = 0 to NoOfRows('ApplicationGroup') - 1

LET vGroup = peek('ADGroup', $(i), 'ApplicationGroup');
LET vAppName= peek('Application Name', $(i), 'ApplicationGroup');
LET vDomain='DOMAIN';

Group:
LOAD 
		'$(vAppName)' 				as [App Name],
        upper(trim(name))    		as GROUPNAME,
        distinguishedName    		as GroupDN, 
        upper(trim(displayname))    as GroupDisplayName
         ;
SQL select  
          name,
          distinguishedName,
          displayname        
FROM 'LDAP://$(RootDse)'  
WHERE objectCategory='group' 
AND name='$(vGroup)';
NEXT i;

For i = 0 to NoOfRows('Group') - 1
LET vUserGroup = peek('GroupDN', $(i), 'Group');
LET vAppName1=peek('App Name', $(i), 'Group');
LET vGroupDisplayName=peek('GroupDisplayName', $(i), 'Group');


GroupsMembers:
LOAD 
//      '$(vAppName1)'
//      &amp;amp;'-'&amp;amp;applymap('TeamMapping','$(vDomain)' &amp;amp; '\' &amp;amp;upper(TextBetween(distinguishedName,'=', ',')),'Users')
//      &amp;amp;'-'&amp;amp;'$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) as Key,
      '$(vAppName1)' as [App Name],
      '$(vGroupDisplayName)' as GroupDisplayName,
      '$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) AS NTNAME,
      '$(vDomain)' &amp;amp; '\' &amp;amp; upper(TextBetween(distinguishedName,'=', ',')) AS USERID,            
      Capitalize(givenname) &amp;amp;' '&amp;amp;Capitalize(sn) AS UserFullName,
      distinguishedName as UserDN,
       '$(vUserGroup)' as GroupDN,
       co as Country,
       title as Title,
       mail as Email;
 SELECT  
     distinguishedName,
     givenname,
     sn,
     co,
     title,
     mail
FROM 'LDAP://$(RootDse)' 
WHERE objectCategory='person' 
AND MemberOf='$(vUserGroup)'
;
Next i;
drop table Group;

exit script&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 16:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Extract-all-users-from-AD-group-and-facing-error-when-I-extract/m-p/1915441#M10515</guid>
      <dc:creator>kishore3k</dc:creator>
      <dc:date>2022-04-06T16:44:18Z</dc:date>
    </item>
  </channel>
</rss>

