I have a requirement where user can pass document and it gets uploaded to an Appian's folder. I have created a WebAPI (Document Upload) and positive scenario is working as expected.
For Negative Scenario (When we are not passing any document):
1. In the WebAPI , it is handled as "400- Document not provided" but when testing we are getting status-200 (Untitled document from web API.txt).
Q. From where we are getting this "Untitled document from web API.txt" document. Where is it handled?
Q. How to fix default handling?
Discussion posts and replies are publicly visible
Hi Stephan,
Ideally it should go to error handling and should give "404- Document Not Found" if no document is sent.
But if you see the response it is generating a document by itself and giving as : "Response Body": "Upload Successful: 25222 - Untitled document from web API.txt"
Then you need to adapt your validation. It is not the body that is null or not, but your body contains a JSON structure and a field called "value" that is null or not.