Error during retrieve from Sage 300 to Sales Analysis

SOLVED

During an end of month retrieve into SA the client is getting the following error message:

[Microsoft][SQL Server Native Client 11.0][SQL Server] Cannot insert duplicate key row in object 'dbo.UXARINVHO' with unique index

'UXARINVHO_idx0'.  The duplicate key value is (6, 1, SALESMAN   )

What's wrong?  What do I need to do to fix?

Any and All Advice Appreciated,

Dana

Parents
  • 0
    SUGGESTED

    The error tells you exactly what's wrong.  Look at the definition of the index dbo.UXARINVHO. This will tell you which Field you are having a problem with. The error message is telling you that the value you are trying to insert is the value "(6, 1, SALESMAN   )". A unique index will prevent duplicate values for that row from being inserted. So you will either need to a) change the value to something that is unique or b) change the index so that it doesn't have a unique constraint. 99% of the time the correct coarse of action will be a).

Reply
  • 0
    SUGGESTED

    The error tells you exactly what's wrong.  Look at the definition of the index dbo.UXARINVHO. This will tell you which Field you are having a problem with. The error message is telling you that the value you are trying to insert is the value "(6, 1, SALESMAN   )". A unique index will prevent duplicate values for that row from being inserted. So you will either need to a) change the value to something that is unique or b) change the index so that it doesn't have a unique constraint. 99% of the time the correct coarse of action will be a).

Children
No Data