"ERROR_INVALID_DATA" error message when you run an ADSI script in Windows 2000

Article translations Article translations
Article ID: 873444 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

Symptoms

When you try to run an Active Directory Service Interfaces (ADSI) script in Microsoft Windows 2000, the script may not run successfully. Additionally, you receive the following error message in this scenario:
ERROR_INVALID_DATA.

Cause

This problem may occur when the GetNextRow function returns "ERROR_INVALID_DATA" instead of "Error_Success/S_OK."

The GetNextRow function returns ERROR_INVALID_DATA if the following conditions are true:
  • The result set is more than the maximum number of rows to be returned in a page.
  • The page is specified by the ADS_SEARCHPREF_PAGESIZE search preference.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

Windows 2000 Service Pack 3 or Windows 2000 Service Pack 4.

Restart requirement

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version            Size    File name
   ------------------------------------------------------------
   03-Aug-2004  15:39  5.0.2195.6920     126,736  Adsldp.dll       
   03-Aug-2004  15:39  5.0.2195.6963     132,880  Adsldpc.dll      
   19-Jun-2003  11:05  5.0.2195.6667      62,736  Adsmsext.dll     
   23-Mar-2004  17:17  5.0.2195.6876     388,368  Advapi32.dll     
   23-Mar-2004  17:17  5.0.2195.6866      69,904  Browser.dll      
   23-Mar-2004  17:17  5.0.2195.6824     134,928  Dnsapi.dll       
   23-Mar-2004  17:17  5.0.2195.6876      92,432  Dnsrslvr.dll     
   23-Mar-2004  17:17  5.0.2195.6883      47,888  Eventlog.dll     
   23-Mar-2004  17:17  5.0.2195.6890     143,632  Kdcsvc.dll       
   10-Mar-2004  17:37  5.0.2195.6903     210,192  Kerberos.dll     
   20-Sep-2003  15:32  5.0.2195.6824      71,888  Ksecdd.sys
   10-Mar-2004  17:37  5.0.2195.6902     520,976  Lsasrv.dll       
   25-Feb-2004  14:59  5.0.2195.6902      33,552  Lsass.exe        
   19-Jun-2003  11:05  5.0.2195.6680     117,520  Msv1_0.dll       
   23-Mar-2004  17:17  5.0.2195.6897     312,592  Netapi32.dll     
   19-Jun-2003  11:05  5.0.2195.6695     371,984  Netlogon.dll     
   23-Mar-2004  17:17  5.0.2195.6896   1,028,880  Ntdsa.dll        
   23-Mar-2004  17:17  5.0.2195.6897     388,368  Samsrv.dll       
   23-Mar-2004  17:17  5.0.2195.6893     111,376  Scecli.dll       
   23-Mar-2004  17:17  5.0.2195.6903     253,200  Scesrv.dll       
   04-Jun-2004  14:13  5.0.2195.6935   5,887,488  Sp3res.dll       
   23-Mar-2004  17:17  5.0.2195.6824      50,960  W32time.dll      
   20-Sep-2003  15:32  5.0.2195.6824      57,104  W32tm.exe        
   19-Jun-2003  11:05  5.0.2195.6666     162,064  Wldap32.dll

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More information

For additional information about how hotfix packages are named, click the following article number to view the article in the Microsoft Knowledge Base:
816915 New file naming schema for Microsoft Windows software update packages
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 873444 - Last Review: October 26, 2013 - Revision: 3.0
Applies to
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Advanced Server
Keywords: 
kbnosurvey kbarchive kbautohotfix kbbug kbfix kbwin2000presp5fix kbhotfixserver kbqfe KB873444

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com