Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have created log stream based task that reads from DB2 LUW(source end point) and loads in DB2 LUW(ODBC target end point). Type of 1 column in source is XML, in Transform column type appears CLOB . Running task in full load, and getting error could not parse XML , invalid EOF internal error.
Taks structure:
task 1: source DB2 -> logstream
task 2: DB2 source (with logstream of task 1) -> odbc(target DB2)
getting error in task 2
If anyone faced similar error please do guide how to handle XML column in Qlik Replicate.
Thanks
Hello @ghassan1 ,
We need some additional information to better understand the issue:
Note: Support for a native DB2 LUW target endpoint in Qlik Replicate is planned for version 2026.5, which is expected to be released within the next few weeks.
Hope this helps.
John.
Hi john_wang,
Thanks for providing your response on this, please find below my inline response on asked questions
regards,
Hello @ghassan1 ,
The behavior could not be reproduced with a simple sanity test. For example:
| CREATE TABLE testxml( id INTEGER NOT NULL PRIMARY KEY, name CHAR(20), xxml XML ); INSERT INTO testxml VALUES (2, 'JohnW', '<?xml version="1.0"?> <name>JohnW</name>'); |
This scenario works as expected with Qlik Replicate. Full Load results:
Given this, I recommend opening a support ticket and including:
This will allow for a more thorough investigation of the issue.
thanks,
John.
Hi @john_wang ,
Thanks for detailed explanation really appreciate.
I was also working on finding solution to this. Currently data type of column is XML Not Null. When I changed it to accept Nulls it worked fine and XML column data is also populate with exact values that source has. One more thing I noticed is that XML is missing last closing bracket > .
when I am changing it back to NOT NULL error occurs,
Hello @ghassan1 ,
Thanks for the detailed information however the behavior still cannot be reproduced in my labs:
| CREATE TABLE testxml( id INTEGER NOT NULL PRIMARY KEY, name CHAR(20), xxml XML NOT NULL ); INSERT INTO testxml VALUES (2, 'JohnW', '<?xml version="1.0"?> <name>JohnW</name>'); |
If you can provide the source table creation DDLs (for both source and target sides) and sample data then I'd like to investigate it deeper.
thanks,
John.
Hi @john_wang ,
please find below details:
Database: DB2 LUW 11.5
table DDL: creare table schema.table ( batid int not null, batch id int not null, xml_data XML not null) organised by row
same DDL deployed on target Database ( Same version of DB2 as source)
XML sample data:
<notif batno=“” <msg> Arabic text here </msg> <notif
please note above last ending closing tag is missing in sourcr xml data
Task settings:
Full load task:
source (db2 Luw) -> target (odbc for db2 Luw)
settings: metadata-> allow unlimited LOB COLUMNS chunk size 128 KB
COLUMN TYPE In transform
CLOB Regular
also tried
CLOB XML
Can you please share you task settings may be it could help resolve issue.
Thank you.
Hi @ghassan1 ,
It looks like the error was triggered by the following setting:
Allow unlimited LOB COLUMNS, chunk size 128 KB.
Please switch to “Limit LOB size” and test again.
If you must continue using the unlimited LOB option, kindly raise a support ticket so we can consult with R&D.
Regards,
Desmond
Hello @ghassan1 , copy @DesmondWOO
I’m not sure whether this is the actual data row from the source or something else, but the XML is invalid. There are several issues:
Hope this helps.
John.