Check boundary conditions if something is missing or field is kept empty. Are you getting the error only at export? Then please check file name of the export, directory or even the frequency of the export if there is a bad symbol or spaces or whatever.