Hi there,
I have been doing a lot of research and watching a lot of videos on how to resolve this.
Some of them are:
• Bulk upload using Postman – Learn Infor M3
• Sending bulk data to post to API for volume testing - #7 by jamesst9
My XML code only sends one record at the time. If I am attempting to load the data through Collection Runner, it doesn’t get loaded.
I am able to upload the data one record at the time by entering the value, as per below:
Booking Test
12345, etc.
However, if I am trying to follow the steps as per this link Bulk upload using Postman – Learn Infor M3 and amend my code to:
{{Name}}
{{ContactID}}, etc.
I am getting the following error message:
soap:Fault>
soap:Client
System.Web.Services.Protocols.SoapException: Server was unable to read request. —> System.InvalidOperationException: There is an error in XML document (4, 28). —>
Error Message: 500 Internal Server Error
I’ve also attempted to convert the data to JSON, by keeping the same POST URL - Raw – JSON – Content-Type – application/json
I have done the following:
“headers”: {
“Name”: “{{Name}}”,
“ContactID”: {{ContactID}},
}
But I am getting the following error:
Server was unable to process request. —> System.Xml.XmlException: Data at the root level is invalid. Line 2, position 1.
Error message: 500 Internal Server Error
Line 2 position 1 is “headers”. I don’t have any pre-request scripts. Just the body as per the above, containing all the Excel columns.
Any help will be much appreciated. Thank you.