In that case: The input can be organised with data-validation.

You have to make sure there can be NO wrong input in your file, which causes trouble like you stated.

data-validation is made to make sure the input is correct.