How to Ingest a table of xml data from on-prem DB2 warehouse to ASDLGen2 using ADF

Nhan, Phuong 0 Reputation points
2026-09-16T14:13:37.9933333+00:00

Hi,

I am using ADF to incrementally load a table containing 2 XML columns from on-prem DB2 warehouse to ADSLGen2 in parquet format. In Copy activity, I use DB2 connector at source and parquet dataset at sink; I also use Query with XMLSERIALIZE for these 2 columns to convert and compress the data; I also explicitly mapped these 2 columns to String. This setup works for a small amount of records; if the record counts are more than 2 thousands, ADF just hang for hours and stuck. What should I change in the ADF pipeline to make it work, please?

Thank you

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. Nhan, Phuong 0 Reputation points
    2026-09-17T19:34:50.6166667+00:00

    Thank you for your responses.

    Originally, with parquet at target, we did not use XMLSERIALIZE and the transfer was all good but... we ended up with a few broken XML records (like missing a closing bracket...). Then we tried it with XMLSERIALIZE and parquet; it works for a small set with a few records and hangs with a large set.

    • XML column size (average/max): 32MB max (I do not have the average though)
    • Azure IR or Self-Hosted IR: we use SHIR
    • Copy activity monitoring metrics as belowScreenshot 2026-09-17 152550 One thing. We have just tried again with XMLSERIALIZE and Json at target. The pipeline was hanging again.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.