SafeGuard Enterprise API based Active Directory import fails to synchronize the directory with the following error message:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Synchronization Users & Computers Management ...
Created Base Object
Created Directory Object
Init API : 0
Authenticate : 0
Init SGD : 0
CreateDirectoryConnection : 0
Start OU : -1
GetLastError returns : |The action has been cancelled by the user.
Finalize SGD: 0
Finalize API: 0
First seen in
SafeGuard Management Center / Local Policy Editor 5.60.1
SafeGuard Enterprise Server 5.60.1
The Active Directory import is currently running on another SafeGuard Management Center / SafeGuard Server instance or was running before but did not complete, keeping the Active Directory import for data integrity reasons in in a locked state.
What To Do
If there is currently another Active Directory import running, cancel the Active Directory import (if required) and re-run the API script.
If the last attempt to synchronize the Active Directory failed, the Active Directory import flag needs to be reset. To do so
- open the SafeGuard Enterprise Management Center
- navigate to "
Options" > "
- use the "
Reset import flag" function
- a popup message appears, verifying if the Active Directory import flag should be reset. Click "
Start another Active Directory synchronization using the API script after the Active Directory import flag was cleared.