Sometimes when calling odata action, we get 400 error on postman:
Exception occurred while executing action Sell on Entity Entity1: Update has been canceled
"stacktrace": " at Dynamics.AX.Application.ABCSell.`run() in xppSource://Source/ABC X\\AxClass_ABCSell.xpp:line 116\r\n at Dynamics.AX.Application.ABCSell.run()\r\n at Dynamics.AX.Application.SysOperationSandbox.`startOperation(SysOperationIMarshalledRun operationInstance)\r\n at Dynamics.AX.Application.SysOperationSandbox.startOperation(SysOperationIMarshalledRun operationInstance)\r\n at Dynamics.AX.Application.Runbase.runOperation()\r\n at Dynamics.AX.Application.Entity1.`Sell(String _Id, String _legalEntity) in xppSource://Source/ABC\\AxDataEntityView_Entity1.xpp:line 76\r\n at Dynamics.AX.Application.Entity1.Sell(String _Id, String _legalEntity)"
The error is not related to OData - it comes from your code. An exception was thrown in run() method of ABCSell class, as line 116.
As you told us nothing about your code in ABCSell, it's impossible to say why it failed. Use the debugger to find out what happens there.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.