Why does it keep saying error occurred when trying to file