Hello,
I change the scenario of Microsoft Identity Manager 2016, and so i must be reinstall it.
I take a backup from FIM Synchronization db and FIMService DB. fim synchronization installed successfully but when i try to install service and portal the following error terminate the installation
EXEC [setup].[ResetAttributeKey]@attributeObjectKey = @ob
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Verbose: 0 : Execute SQL : The transaction failed with the following errors System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (283).
The DELETE statement conflicted with the REFERENCE c
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Error: 3 : The database upgrade fails to run the post-process sql script for configuration updates.
The error message: Execute SQL : The upgrade tool has rolled back.
The sql transaction running the script ConfigurationChange2004Attribute.sql failed.
Exception: System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (283).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (284).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (285).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (286).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (287).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (288).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (289).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (290).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (291).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (292).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (293).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (294).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (295).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (296).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (297).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (298).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (299).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (300).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (301).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (302).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (303).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (304).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (305).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (306).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (307).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (308).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (309).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (310).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (311).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (312).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (313).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (314).
The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'. Cannot insert duplicate key in object 'fim.AttributeInternal'. The duplicate key value is (315).
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.IdentityManagement.DatabaseUpgrade.Program.ExecuteSqlScript(SqlConnection connection, String sqlFile, Boolean embeddedAsResource, Boolean hasPlaceholders, Boolean continueOnError)
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Verbose: 0 : Database upgrade : Out-of-box object upgrade completed.
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Verbose: 0 : Database upgrade : Out-of-box object upgrade complete with errors. Execute SQL : The upgrade tool has rolled back.
The sql transaction running the script ConfigurationChange2004Attribute.sql failed.
Exception: System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_BindingInternal_AttributeInternal". The conflict occurred in database "MIMService", table "fim.BindingInternal", column 'AttributeKey'.
Violation of PRIMARY KEY constraint 'PK_AttributeInternal'.
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Error: 3 : Database upgrade : Encountered errors when upgrading the out-of-box objects.
DateTime=2016-06-08T04:03:14.6982829Z
Microsoft.ResourceManagement Verbose: 0 : The AppDomain's parent process is exiting.
DateTime=2016-06-08T04:03:14.6982829Z