Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
I have created a menu item to create a specific batch job, but after click on OK button, show an error. Could help me?
Can you tell what exactly has been created as customization? Did you verify other standard objects as reference about what might be missing here?
Your menuitem properties look wrong.
Object, Parameters properties have to be revisited.
Can you confirm if FF_CoupaVendors is the Controller class for this Batch Job?
I tried to create the batch job like this article.
Can you also share the contents of the main method which you are trying to start? Does it have required parameters to be filled? If so, try to create a method like the blog without required parameters.
I changed the class extends to RunBaseBatch.
The code in main method is:
static void main(Args _args)
FF_CoupaVendors vendors = new FF_CoupaVendors();
I changed the Menu item object to FF_CoupaVendors.
The batch is working if I do not add in to "Batch processing".
The batch job log is:
System.InvalidCastException: Unable to cast object of type 'Dynamics.Ax.Application.FF_CoupaVendors' to type 'Dynamics.Ax.Application.Batchable'.
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 30
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Take a look at this discussion:
I did, but I got the same issue.
Hi Rafael Pinheiro Araujo!
Check this link: https://community.dynamics.com/ax/f/33/t/144116
Business Applications communities