cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1168
Views
15
Helpful
4
Replies

CVP Call Studio Rest Element - Import a Record to CCE Dialer Campaign

Gerry O'Rourke
Spotlight
Spotlight

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.

 

cvp-dialer1.png 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.

 

cvp-dialer2.png

 

Regards,

Gerry

 

 

1 Accepted Solution

Accepted Solutions

Can you plz try with below request without CDATA.

 

<import>
<fileContent>
AccountNumber,FirstName,LastName,Phone01
Key-5551006,Bob,Bobster,0123456789
</fileContent>
<delimiter>,</delimiter>
</import>

 

View solution in original post

4 Replies 4

Can you output to log the request body? I suspect some character or white space is sneaking in without you noticing it.

 

david

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

Can you plz try with below request without CDATA.

 

<import>
<fileContent>
AccountNumber,FirstName,LastName,Phone01
Key-5551006,Bob,Bobster,0123456789
</fileContent>
<delimiter>,</delimiter>
</import>

 

Ananth,

 

Yes, that worked! Thank you SOOO much.

Are you able to explain why this works, while including the CDATA does not?

 

Regards,

Gerry