return error if IDS data file is irregular.