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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Suggested Answer

Why am I receiving WebAPI response status as 204 (No Content)

(0) ShareShare
ReportReport
Posted on by 80

We have created a custom action(OOB with two input and one output parameter) and called the same from JavaScript through WebAPI.If the call is synchronous the response status is 200 and able to get output parameter as the response text.

But if the call is asynchronous then the behaviour is weird sometimes it gives response status as 204 and sometimes 200.

Could someone let us know why we are receiving 204(No Content) status as we are expecting output parameter as response text always.

*This post is locked for comments

I have the same question (0)
  • Fede Jousset Profile Picture
    30 on at

    Hi there,

    Were you able to find the root cause or fix this issue? I'm having the same problem calling a Custom Action using the WebAPI endpoint, but in our scenario it's a synchronous execution.

    Thank you!

  • LaszloPenzes Profile Picture
    on at

    Same here.

    Created a custom action with one output parameter. Assigned a value to that param and activated -> worked ok.

    Made a minor change to the action (amended the value assigned to output param) -> stopped working and the only thing it returns is 204 No Content.

    Some folks wrote that there's a problem with WF editor that makes the XAML file to have invalid content. I exported both versions of the solution and compared the files, but no difference.

  • Peter Widmer Profile Picture
    40 on at

    There seems to be a bug (which Laszlo Penzes pointed out already).

    The workaround is like this: Create a new action and get all parameters (input and output) right before saving the action. After doing so I correctly received the content (200)

  • Suggested answer
    Community Member Profile Picture
    on at

    I had the same error.

    I deleted the plugin registration and deleted the process. Then I created it again, but with the same result.

    My solution was to create the process with a new name. Registered the plugin and everything worked again.

    I think that there is something like a caching on the server, that only recreating is not enough. Maybe deleting the process, restart the system (iisreset) and recreation my help.

  • Suggested answer
    Yusi Profile Picture
    100 on at

    I faced the same issue and restarting the app server alone solved my problem. Now getting 200 instead of 204 with a valid returned content value

  • Suggested answer
    Red Hodgerson Profile Picture
    on at

    This is a known issue for v8.2 on-premise. Upgrading to v9 on-premise will resolve the issue. To work-around it in v8.2 you can recycle the app pool.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans