Hello everyone,
I'm dealing with two problems on batch jobs:
Batch fails after adding a task inside it
This is happening randomly in test environments and in Live as well. Basically all I do is submitting a batch execution, trace it in "Batch jobs" list and add one more task inside the batch itself, setting a dependency between the two tasks. Sometimes the execution works well, sometimes it ends up in error with the following message:
Microsoft.Dynamics.Ax.Xpp.ErrorException: Errore durante l'elaborazione del processo batch FATT.NETTE PRESS AL 30/09/2019 at Dynamics.AX.Application.BatchRun.runJobStaticCodeFromBuffer(Batch buffer) in xppSource://Source/ApplicationPlatform\AxClass_BatchRun.xpp:line 831 at Dynamics.AX.Application.BatchRun.runJobStaticFromBuffer(Batch buffer) in xppSource://Source/ApplicationPlatform\AxClass_BatchRun.xpp:line 769 at Microsoft.Dynamics.AX.Batch.Batch.ExecuteOneBatchJobTask(BatchTaskInfoWrapper taskInfo)
I know this has to be analyzed properly by a developer but could you just give me some insights? As I said before, this appears randomly. Hours ago it happened in Live environment so I tried the same batch (same tasks & parameters) in Pre-Live and turned out to work well this time.
Setting tasks parameters results in an execution extra-batch
Again, this is happening randomly in test environments and in Live as well. Once I add another task inside the batch job and I set-up the parameters for that execution, the system creates a single running execution of that task, meaning:
- I have two tasks inside the batch job: A and B
- I set up some parameters on B and click OK
- The system creates a running job for the B task - It must not do that, it could be dangerous for us
- I still have my batch with A and B tasks with their chosen parameters - That's what I want the system to execute
I wonder if anyone of you faced similar issues or has some insights about them. Thanks for stopping by.
Gian Paolo