add an exception if insert an record with empty id