In dictonaries first (or second?) id field is an index in database. Probably you try input small numbers, but ids in db up to 15000 already used by other regions. And you got error, same as in state menu.
Try to use bigger ids or see unused directly in db.
P.S. In version 11 of dolibarr same problems.