Fix non working ON_ERROR_STOP set to 0 during data export.