Error: incorrect username or password during AD import job
searchcancel
Error: incorrect username or password during AD import job
book
Article ID: 172061
calendar_today
Updated On: 03-11-2025
Products
Information Centric Analytics
Issue/Introduction
The Bay Dynamics AD Connector Job fails and logs the following errors:
[1:ERROR] Program.Main() Exception caught in ActiveDirectoryImporter System.Runtime.InteropServices.COMException (0x8007052E): The user name or password is incorrect.
[1:ERROR] Program.Main() ActiveDirectoryImporter import was not successful. Process Exit Code 1. The step failed.
Environment
Version : 6.x
Component : Active Directory Import Utility
Cause
This failure can be caused by any of the following conditions:
The account name used to query the Active Directory (AD) domain controller is invalid
The password for the account used to query the AD domain controller is invalid (typically expired)
The password for the account used to query the AD domain controller has not been updated correctly and encrypted
Resolution
To update the password used by the Active Directory Import Utility to query AD domain controllers, follow this procedure:
Open SQL Server Management Studio (SSMS)
Connect to the Database Engine hosting the ActiveDirectoryDW relational database
In Object Explorer, navigate to Databases > ActiveDirectoryDW > Tables
Right-click the table dbo.Server and select Select Top 1000 Rows
Note the ServerID of the AD server to be updated
In Object Explorer, navigate to SQL Server Agent > Jobs
Right-click the Bay Dynamics AD Connector Job and select Properties The Job Properties - Bay Dynamics AD Connector Job window opens
In the Job Properties - Bay Dynamics AD Connector Job window, select the Steps page
On the Steps page, click the Edit button The Command window opens
In the Command window, note the path to the ImportADUsersAndComputers.exe executable
Open a command prompt as an administrator
Navigate to the path identified in step 9
Edit the following command to use the ServerID from step 4 and the new password for the account: