Issue with HTTP POST Method in UiPath's Http Request Activity

I’m reaching out regarding an issue I encountered while using the HTTP Request activity in UiPath. Specifically, I’ve encountered difficulties with the POST method, as it is throwing an error indicating that the “name” column should not be null, even though I’m not providing any null values for this column.

Here are the key details of the issue:

  1. Context: I’m using UiPath’s Http Request activity to send a POST request to an API endpoint. The request aims to create a new record in a database table.
  2. Error Message: Upon executing the POST request, I’m receiving an error message indicating that the “name” column should not be null. This occurs despite ensuring that I’ve provided valid values for all parameters, including “name,” in the request body.
  3. Comparison with Postman: Interestingly, the same request works flawlessly when sent through Postman. The request body is structured correctly, and no errors are encountered during execution.
  4. Observation: Upon thorough inspection, it seems that UiPath’s Http Request activity might be encountering difficulties in properly handling the request parameters or constructing the request body.
  5. Desired Resolution: My objective is to rectify this issue and ensure that the POST method in UiPath’s Http Request activity functions seamlessly, akin to the functionality observed in Postman.

I kindly request your assistance in troubleshooting and resolving this issue. If you have any insights, recommendations, or potential solutions to offer, I would greatly appreciate your input.

Warm regards,

Hi!

As a workaround you could use a coded workflow or invoke code and build your own http request method.

Hi yes ,that is my own http

I’m suggesting that as a workaround you build your own in an invoke code, or a coded workflow.

See this thread:
How to use the invoke code activity to request an server side data - Help - UiPath Community Forum