in the store order summary behavior, you are saving the Item ID value to the OrderID Column of the orders table.
the orderID column of the orders table is the primary key column. You should not assign a value to the primary key column, you should let the database populate that column automatically. let the database create a unique ID for each record rather than trying to force a value. the error is happening because you are forcing a value to the orderID column which is set to not allow duplicate values.