Invoice batch job in AX 2012 is not working after restarting the AOS

Hi All,

We have a customized Invoice batch job(where we included so many filters) for sales orders in AX 2012.It was working since one year.All of sudden it stopped working after restarting the AOS couple of days back.

Batch job is executing but none of sales orders are getting invoiced.We checked batch group and some other parameters related to batch job ,all are like before only nothing has been changed.We could not able to identify the issue why it is not executing SO invoices.

Please someone help me to fix the issue.

If it executes successfully but doesn’t post any invoices, the most probable explanation is that the query (looking for orders to post) doesn’t return anything. Review query ranges and other parameters (e.g. Late selection).

Also, if you added new filters and didn’t handle their initialization in code, you’ll have to schedule the batch again to get new filters working.

Hi Martin,

Thanks for you reply.

It did working ,if we do,not select batch processing check box but not executing invoices if we enable batch processing check box.We did not change anything except restating AOS.It is working fine since one year(this is completely customized batch)

Are you saying that you tested a new batch instance with the same parameters that work in interactive session? Don’t you have any problem with CIL?

Try to reproduce the problem in a test environment. If it doesn’t work there either, simply get a developer to look into the batch in debugger.

We even imported the same xpo in TEST environment and it is working fine.

We ran CIL 10 days before,batch executed successfully after CIL.All of sudden it stopped working after restarting the AOS two days back.