Еще один способ - можно воспользоваться такой возможностью класса Info
X++:
int errorsPerBatch;
;
errorsPerBatch = infolog.errorsPerBatch();
infolog.errorsPerBatch(-1);
try
{
// выполняем нужные действия
...
infolog.errorsPerBatch(errorsPerBatch);
}
catch
{
infolog.errorsPerBatch(errorsPerBatch);
}