3.6.2.13. Checking for Batches that Failed Exporting
This sample can be used to check for Batches that have errors. This script will generate a message that is sent via email if there are any batches on the system that returned errors while exporting.
Just replace "JOB NAME" with the desired Job name or leave it empty to loop through all existing batches.
batchesArray = ChronoApp.GetBatches("JOB NAME")
BatchStatArr = Array("not exported","exported ok","not exported because of not validated documents","error exporting","export canceled")
strMessage = ""
For Each strBatch In batchesArray
Set Batch = ChronoApp.CreateBatch("JOB NAME",strBatch)