FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
jie
Staff
Staff
Article Id 384324
Description This article explains how to resolve the domain sync failed after upgrading EMS to v7.2.8 with the error 'fk_Forticlient_Users_Users_machine_user_id'.
Scope EMS v7.2.
Solution

After EMS is successfully upgraded to v7.2.8, when doing domain sync failed and see the below error in EMS log:

 

"failed to update database sync object tables: error loop forticlient users from spUpdateDomainUsers output: mssql: The DELETE statement conflicted with the REFERENCE constraint "fk_Forticlient_Users_Users_machine_user_id". The conflict occurred in database!

 

Use the attached hotfix and follow the below steps to fix this issue.

 

  1. Extract the contents of the zip file.
  2. Open powershell as admin, navigate to the 'hotfix_1116781_728_2' folder.
  3. Run 'Set-ExecutionPolicy Bypass -Scope'.

 

1.PNG

 

  1. Run 'powershell.exe -noprofile -executionpolicy bypass -file .\hotfix_1116781.ps1'.

 

2.PNG
Once the hotfix is applied successfully then go to EMS -> Administration -> Authentication Servers -> Ad -> Edit -> Test -> Save and EMS -> Endpoints -> Manage Domains -> Select the Domain -> Sync and the issue should be resolved.

Contributors