raise error on duplicate id