The problem is that I don’t know where to put it into HTTP Request Properties. It is always giving me an error:
“HTTP Status 400 - Required request part ‘keyName’ is not present”
I’ve put it like an argument in parameters property, urlSegment property, Headers property, Cookies property and also in body property as a variable with the same name ‘keyName’
Yes, it doesn’t work there because it’s a text and whe it is in attachments the HTTP Request is trying to locate a file based in that text so it cause an error.
Hi @HareeshMR the big problem really is that I’m trying to send not just text/plain variable. I’m algo sending a file in the same webservice.
My Content-Type is multipart/form-data with a boundary (the uipath read this correctly)
Im sending the file in attachments (the uipath read this correctly)
Im trying to put the text/plain in parameters like this:
Variable--------------Type--------------Value
keyName------------String-------“Example Test”
Then, When I run it, uipath needs todo send me a status code 200 Wich it’s a correct response and also it needs to send the file and the string “Example Test” But it’s sending me an exception instead telling me that cannot found ‘keyName’ in the parameters to send
I think I need to write something more into the value maybe to connect with the boundary but I dont know-how how to put it… Or maybe importante doing Something wrong
Yes. The client method receive 2 parameters: a multipart file and a string. Im sending the multipart file into attachments and the string into parameters.
Please try sending the content type header as application/txt; charset=utf-8 and the request parameter in the request is case sensitive, I hope you are sending the request correctly @KevinDS. And if it is a optional parameter in the request, please ignore sending it.
Hi @HareeshMR , Knowing the method needs to receive one file and one string and I can have just one variable Content-Type how can I put application/text and multipart/form-data in the same value?
Yes but this may be the problem. I read that it’s advisable to change “Content-Type” but Body format was the closest I could find. Maybe I should have changed Content type somewhere else?
You need to pass the content type parameter as header which is mandatory for some services (based on the developer). So try passing it as a header and check if that is working.
is this issue already solve? i got similar issue to…
my API third party only accept form data when post documents. i already tried:
no input “multipart/form-data” content type in header and use attachment properties with correct path file. but my third party respond, “no attachment detected”. i always tried to test path file to prove that the path is correct, and i get same result file opened
with input “multipart/form-data” content type in header, and also input boundary and use attachment properties. i get response to my api "required file parameter ‘file’ ", i tried to put ‘file’ in header, body, parameter etc, but it didn’t work
please let me know how to solve this problem. thank you