MP's have warned that lessons need to be learned.