Ran into an issue while converting from 5.1 Classic to MVC with the GetNextNumber service.
I have a loop ForEachItem that iterates over a list of items and updates which items are in the cart.
The GetNextNumber service that was being called was throwing this error.
The PK contraint violation started on ITU-10011064 and every time I tried it again it would increment to the next number instead of the next available number. So, to fix it I went to the db and found the next available number myself and used that as the starting Value. Then I changed it back to the standard StartFrom 10010000.
That seems to have solved the issue but I am not sure why it happened.
5.1 Classic GetNextNumber
-
- Posts: 38
- Joined: March 16th, 2022, 1:04 pm
- Contact: