Hi,
This error is coming while synchronizing the DataDictionary.
SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]There is already an object named 'I_100013RECID' in the database.
SQL statement: ALTER TABLE "DBO".ACOCOSTCENTERATTRIBUTEVALUE_BR ADD CONSTRAINT I_100013RECID PRIMARY KEY NONCLUSTERED (RECID)
I copied entire business and code database and created new AX Env. I am not sure if this error is there on source Env as well, but I want to resolve this on the new Env.
What I tried already:
Deleted the table from SQL Server Management Studio and then Synchronize from AOT but the error persists.
Tried to alter the constraint name from SSMS:
ALTER TABLE dbo.ACOCOSTCENTERATTRIBUTEVALUE_BR DROP CONSTRAINT I_100013RECID;
But getting this error:
Msg 3733, Level 16, State 2, Line 25
Constraint 'I_100013RECID' does not belong to table 'ACOCOSTCENTERATTRIBUTEVALUE_BR'.
Msg 3727, Level 16, State 0, Line 25
Could not drop constraint. See previous errors.
But on querying the indexes, it's showing the correct table:
select object_name(object_id) from sys.indexes WHERE name = 'I_100013RECID'
Output:
(No column name)
dbo.ACOCOSTCENTERATTRIBUTEVALUE_BR
On checking sys.indexes there is only one index by this name:
*This post is locked for comments