Please check the data integrity as this sounds like a corrupted batch file. If errors are found, exit the check, do a backup of the data, then re-run the check and the Rebuild function.

This may not be a fixable error and might require a repair.