web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

400 error when calling odata action

(0) ShareShare
ReportReport
Posted on by 1,913
Hi,

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)"

What would cause such error?
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,701 Most Valuable Professional on at
    400 error when calling odata action
    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.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 753

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 534 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans