The error message is saying that it couldn't create the ShoppingCartSKU
record because of the constraint violation.
It's difficult to say without values, but the constraint that is being violated requires that the @ShoppingCartID
value existing in COM_ShoppingCart.ShoppingCartID
. If you look at the parameters, are you sure that the value that you are passing in @ShoppingCartID
is correct?