Program is not works when it is executed through batch processing

In Development environment, a program that exports item details in text format works fine when it is executed in both way manual and through batch processing. The same program works fine in Production sever when it is executed manually however problem when it is executed through batch processing as shown below: