The official says he warned of issues over migrants and public records.