Migration support: detect duplicate values