It's hard to help you if you don't even tell us how you schedule the task, e.g. which UDF is being used, or whether you're using your own script.
_________________________
There are two types of vessels, submarines and targets.