codes to find the fails and re import from csv files