Archive for the ‘SQL’ Category
Solving Problems during SQL data dictionary synchronisation
You might get this error message following an upgrade:
To find out exactly what the problem is you will need to have a look in the Windows event viewer on the AOS server, which will look something like this:
If the error is similar to this (I.E of the family “The CREATE UNIQUE INDEX statement terminated because a duplicate key was found”) then you have the following options to solve the problem:
1. If you are not worried about the data in the table then the simplest solution is to drop the table
Otherwise:
2. In AX, temporarily disable the index (that causes the duplicate) and use the table browser with filters(using data from the event log) to correct the data.
or
3. Use SQL Server management studio to resolve the problem – see this microsoft knowledge base article for a great guide on how to do this: http://support.microsoft.com/kb/139444
Please look out for future posts with some tools to help with this!