How to resolve Error occurred while processing batch job?

We have created a batch job class, which read the excel file from shared folder and insert that data into Table.

If we run this class without batch processing it works fine but after adding batch processing it occurs an error.

Enabled AOS as batch server also.

Is there any setup we are missing for batch processing.

Any help.

No Data
  • "It occurs an error" isn't a very detailed description of the behavior you're observing. You would have to give us more information.

    Do you realize that jobs and batches runs on different computers and under different user accounts? Maybe the shared folder isn't accessible from AOS or the AOS service account doesn't have permissions to read files from there. Consider running your code interactively on server (instead of in a job on client) to see whether the problem is about the location or something else (such as permissions). Don't forget that you can use the debugger to see where your code is failing.