Reset generation number and sequence number if file fails