failed to write the data file