Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
RJCL
Contributor
Contributor

Error with tESBConsumer when converting the XML response into a "Document"

I am receiving the following error:

 

         Could not parse the XML stream caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 26))

         at [row,col {unknown-source}]: [1,1818].

 

How can I solve the problem?
      Would it be possible to change the incorrect character before the response becomes an XML DOCUMENT?

 

Any solution / idea will be appreciated.

 

Thank you

 

Labels (3)
4 Replies
fdenis
Master
Master

use a low level text editor to edit your xml fine an check than xml charcode is inline with xml charcode definition.
RJCL
Contributor
Contributor
Author

Hello

 

Thank you for your answer.

 

I know what the wrong character is, but I can not (I do not know how) remove it before the TESBConsumer component tries to convert the Web Service response to a DOCUMENT TYPE.

 

Thank you again.

fdenis
Master
Master

can you debug xml generator? (best way)
second way, save the xml, open xml in text mode replace char and reopen
RJCL
Contributor
Contributor
Author

Yes

I know what character is the problem and where is in the XML response. But I want to solve the problem for future cases. It is sure that it will continue happening.

 

   The web service where I connect, occasionally, returns characters that are not correct for an XML. 

   The TESBCconsumer component always, before returning control to the next component, converts the XML result into a Document type object.

 

I would like to change the character before the conversion to avoid the error.

 

Thank you