My Oracle Support Banner

"ODI-40945: XSD parser encountered error parsing XSD/DTD." and "Expected 'DOCTYPE'.)" Messages when Testing XML Connection in ODI (Doc ID 2366546.1)

Last updated on MARCH 28, 2021

Applies to:

Oracle Data Integrator - Version and later
Information in this document applies to any platform.


In Oracle Data Integrator (ODI 12.2.1), executing a load plan that reads from an XML source results in the following error:

ODI-1228: Task <PROCEDURE_TASK> fails on the target connection <CONNECTION>.
Caused By: java.sql.SQLException: ODI-40738: A SAXException was caught while reading the model saying: ODI-40945: XSD parser encountered error parsing XSD/DTD. Check validity.(cause: oracle.xml.parser.schema.XSDException: Expected 'DOCTYPE'.)
  at com.sunopsis.jdbc.driver.xml.SnpsXmlDTD.initialize(
  at com.sunopsis.jdbc.driver.xml.SnpsXmlDTD.initialize(
  at com.sunopsis.jdbc.driver.xml.SnpsXmlDTD.(
  at com.sunopsis.jdbc.driver.xml.SnpsXmlSchema.(

When the XML file connection is tested in Studio, it may return error ODI-26039.


The error states the XML file could not be parsed which in most cases indicates that it is malformed.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.