We now check if an inventory ID is already in use and provide an error message if it is.