you didnt fix anything. You are just masking one very specific issue
open order entry
add the vendor table as an externally updated table to customer with DD_Lock_On_All
compile and run and open vendor view. find a vendor
open customer view find a customer and modify something
open dbexplorer and delete the vendor you found in the vendor view
now save the customer -> error