I found error in my DB - sequence for column id had value less "SELECT max ( id ) FROM table0" (sequence throwed unique violation exception too). I set valid value for sequence and issue was resolved.