Hi ,
Thanks for reaching out to Microsoft Q&A.
This error (Unknown SQL type -99) typically occurs when the ODBC driver for DB2 encounters a column data type it does not recognize or map properly to standard SQL types.
Possible Root cause:
DB2 has proprietary or uncommon data types (like XML, DECFLOAT, ROWID, CLOB, or user-defined types) that the ADF or Fabric ODBC connector cannot interpret.
Fix that yo ucan try:
- Identify problematic columns: Run --> "SELECT TABNAME, COLNAME, TYPENAME FROM SYSCAT.COLUMNS WHERE TYPENAME IN ('DECFLOAT', 'XML', 'ROWID');" These are often the ones causing the issue.
- Workarounds:
- Exclude or cast those columns in a DB2 view (for example,
CAST(DECFLOAT AS DECIMAL(38,10))orCAST(XML AS VARCHAR(4000))), and copy the view instead. - Ensure the latest IBM ODBC/CLI driver (v11.5+) is installed on the integration runtime.
- Verify that your ODBC DSN uses the correct driver and 64-bit version.
- Exclude or cast those columns in a DB2 view (for example,
- Alternative: Use the DB2 native conn instead of generic ODBC if available, it has better type support.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.