BookIn Activation can sometimes result in an error - "Add failed. Duplicate key value supplied"

BookIn Activation can sometimes result in an error - "Add failed. Duplicate key value supplied"

 

When the same Suppliers Warehouse is added to the Inventory Suppliers tab for different Unit of Measure, it is set as duplicate default, this can then result in an error on BookIn Activation. This affects version 07.02.01.00 SR18.

image-20241103-225553.png

This error is due to Inventory Items having more than 1 default supplier warehouses for the same supplier which is an invalid condition.

image-20241103-225611.png

 

Run the below script against the database to identify the problem rows and fix the data correctly.

 

Related content