Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Cannot execute a data definition language command on (). The SQL database has issued an error

$
0
0

Hi guys,

i have this error while synchronizing database and i have checked event view information:

Object Server 01: The database reported (session 3 (Admin)): [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.INVENTDIM' and the index name
'I_698DIMIDX'. The duplicate key value is (5637144576, rage, , , , , RAGE, RM, , In_01, , , , ,
<NULL>).. The SQL statement was: "CREATE UNIQUE INDEX I_698DIMIDX ON "DBO".INVENTDIM (PARTITION,DATAAREAID,CONFIGID,INVENTSIZEID,INVENTCOLORID,INVENTSTYLEID,INVENTSITEID,INVENTLOCATIONID,INVENTBATCHID,WMSLOCATIONID,INVENTSERIALID,INVENTGTDID_RU,INVENTPROFILEID_RU,INVENTOWNERID_RU,SHA1HASH) "

 

Please help me to correct if my understanding is wrong. The process is trying to create some key value  (5637144576, rage, , , , , RAGE, RM, , In_01, , , , , 
<NULL>), index (I_698DIMIDX) in the table (INVENTDIM) but it is impossible as they are already there.

My thought is deleting the table and it will be created itself again in synchronization process but i am not sure if there is any data in it. Is there anyway i can export the data then delete the table and after synchronization process is completed, i can import the data manually.

Please advise if there is correct way to get it right as i have not much experience on SQL and AX.

Your kind help is highly appreciated.

Regards,

Hoang


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>