The error “Duplicate entry ABC for key OS_POS_ST_CONTS_OSPID_UQ” is raised when two or more threads are in a race condition attempting to occupy the same container slot. When two or more threads ask the question - “Give me the next free slot available in the container X?” at about the same time, all of them get the same answer. It is P1. One of the thread succeeds in using the slot P1. The other threads end up on losing side and spit the unique constraint error.
When the user submits the same page/form twice either from the same tab or different tabs in quick successions
When two or more users use the same container at about the same time.
Review, none of the container slots, are occupied by the other specimens
Wait for some time and resubmit the form.