09-30-2021 08:54 AM
Hi,
Hoping someone can help here?
I can import a record to a dialer campaign without issue using Postman- as per below screen shot.
As you can see below - I get a 200 OK and I can confirm the record is in the Outbound Dialer Database.
However when I use the same import data on CVP Call Studio I get a HTTP 400 error back from the AW tomcat web server with the following returned response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <apiErrors> <apiError> <errorMessage>400 Bad Request - javax.xml.bind.UnmarshalException - with linked exception:[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.] </errorMessage> </apiError> </apiErrors>
Anyone know if I can use the REST API successfully to import a record to the CCE Dialer?
Below is a screen shot of the Rest Element in Call Studio.
Regards,
Gerry
Solved! Go to Solution.
10-02-2021 09:36 AM - edited 10-02-2021 09:38 AM
Can you plz try with below request without CDATA.
<import> <fileContent> AccountNumber,FirstName,LastName,Phone01 Key-5551006,Bob,Bobster,0123456789 </fileContent> <delimiter>,</delimiter> </import>
09-30-2021 05:56 PM
Can you output to log the request body? I suspect some character or white space is sneaking in without you noticing it.
david
10-01-2021 12:25 AM
Content Below.
There are no spaces. I also copied and pasted direct from working Postman version to CVP Call Studio.
And I copied into notepad and saved and then copied and pasted in.
So that why I am struggling to see where the issue is....
<import> <fileContent> <![CDATA[AccountNumber,FirstName,LastName,Phone01 Key-5551006,Bob,Bobster,0123456789]]> </fileContent> <delimiter>,</delimiter> </import>
Gerry
10-02-2021 09:36 AM - edited 10-02-2021 09:38 AM
Can you plz try with below request without CDATA.
<import> <fileContent> AccountNumber,FirstName,LastName,Phone01 Key-5551006,Bob,Bobster,0123456789 </fileContent> <delimiter>,</delimiter> </import>
10-03-2021 01:56 AM
Ananth,
Yes, that worked! Thank you SOOO much.
Are you able to explain why this works, while including the CDATA does not?
Regards,
Gerry
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide