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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

reading xml

Hello

I'm reading a qvd file which contains data for a table that has a column whose data is in xml format

I'm reading the xml field and then parse it to get the fields in the xml tags along with their values

during reload I get an error saying

An invalid character was found in text content.

On line number: 1. On column number: 659.

but I don't have that number of columns?

Check attached QVW and QVD file

the script works fine if I put the condition where RecNo < 367

but if I remove this condition the script works fine - and I have to in order to read all data

can someone help me identify what might be wrong?

I can walk on water when it freezes
2 Replies
Abhiman
Contributor
Contributor

Most possibly the QVD file-structure doesn't fits to the Qlik rules of a valid XML. I think if you see the fields they have some unrecognised values for example '[[[[' , QLIK is unable to parse these delimited values and convert to XML. 

You can try either 'delimited' or 'Fixed record' file format to see if it works.

marcus_sommer

Just load the qvd without any adjusting and then do a copy and paste of single cells and storing them into a file. Then using the load-wizard to load those files as xml. I assume some will fail and then you could look how they differ to a standard xml-structure.

Maybe it are only a few easy to fix adjustments - otherwise you should consider to skip the xml-load and loading + extracting it with a bunch of string-functions.