I am trying to upgrade my AX2012FP to the R3 version , but during the process I am getting errors on the synchronisation (so right after presync) . One of the errors is the following:
SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.AGREEMENTHEADER' and the index name 'I_4902PURCHNUMBERSEQUENCEIDX'. The duplicate key value is (5637144576, , 0, 4902).
The problem here is that if i check in the AOT and in SQL this index does not exist so I can not temporarily make it non-unique until the effective data upgrade. The table supports inheritance but does not extend from anything. It is as if the kernel itself is trying to add this index. Deleting the records is not an option as I would lose data.
I am following the official guide which tells me to use the data upgrade checklist for an in-place data upgrade: