function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chandra SfdChandra Sfd 

Email error logs after command line data loader runs a job

Hi all, I am using command line data loader to upsert records into a custom object and I have scheduled it using windows scheduler. As an admin, I would like to recieve the error logs, if any, as an email attachment. If getting error log as an email attachment is not possible, I would atleast like to be notified when there are any errors during the upsert process. Please provide your inputs. Thank you!
Nadya PavlovaqNadya Pavlovaq
Hi Chandra,

as you are running the data uploader command line, the log should be created in the folder where the data loader resides. You may add an additional .bat file or modify your existing .bat file to email the error log file if it is not empty.
Chandra SfdChandra Sfd
Thank you, Nadya! Do you have any sample .bat file that checks for the error log and send out an email?