salesforce - How to Detect Errors in Apex Data Loader Batch Execution -
we have dos batch job runs multi-step process to:
- delete records salesforce specific object (download ids , delete them using data loader)
- deletes records database table mirrors salesforce data.
- extracts data database , uploads data salesforce objects using data loader.
- downloads salesforce data database table.
recently, first step has been failing query-timeout error. if rerun process, works ok without other changes. being investigated, not question.
my question is: how can detect when step 1 (which uses data loader) in batch file fails? if fails, not want proceed rest of process, deletes database data used elsewhere reporting.
does apex loader set errorlevel if fails? how else can determine there failure?
thanks.
ron ventura
please view more detail refer link below. check log file data loader generates when there error, if no errors found log files empty, if pass 100% successful, error log have header line , no rows.
http://www.nimbleuser.com/blog/posts/2012/failing-safe-with-the-apex-data-loader-for-salesforce-crm/
and can refer answer. https://salesforce.stackexchange.com/questions/14466/availability-of-apex-data-loader-error-file-from-local-pc-to-salesforce
regards.
Comments
Post a Comment