[IMP] : raise exception  when pref_id fails