XML Parsing error, XALAN Fatal Error, expected an attribute

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
saidutta123
Participant
Posts: 3
Joined: Thu Aug 25, 2011 2:26 am

XML Parsing error, XALAN Fatal Error, expected an attribute

Post by saidutta123 »

Hi

I have a design like below

oracle_connector ---> copy----> xmlinput--- > t/f----->oracle_connector

We are reading xml from oracle CLOB and parsing the xml using xml input stage. Job ran fine for couple of xmls but for one of the xmls I am facing xalan fatal error, which is basically occurs due to discrepancies in xml structure. i have tested the xml with altova and it is well formed and valid.

the error message is "XML document parsing failed: Xalan Fatal error: Expected an attribute value."

xml input properties i have given: repetition element required, replace nulls with values, fragment, reading xml document.

please help me here.
dssqt
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It may be "well formed and valid" but it sounds like it doesn't match the metadata (XPath Expressions) you are using to parse it. Does all of the XML in the CLOB conform to a single xsd?
-craig

"You can never have too many knives" -- Logan Nine Fingers
saidutta123
Participant
Posts: 3
Joined: Thu Aug 25, 2011 2:26 am

Post by saidutta123 »

The Xpath expressions are fine craig. I have taken the copy of CLOB XML and ran it through External source as a file and it is loading successfully. i don't know why it is not working through CLOB.

/Does all of the XML in the CLOB conform to a single xsd?/

yes it does.
Last edited by saidutta123 on Fri Sep 30, 2011 2:08 am, edited 1 time in total.
dssqt
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK, then perhaps something extra is coming along for the ride. How exactly are you extracting the XML from the CLOB in the job? Doing anything other than just selecting it?
-craig

"You can never have too many knives" -- Logan Nine Fingers
saidutta123
Participant
Posts: 3
Joined: Thu Aug 25, 2011 2:26 am

Post by saidutta123 »

It has been solved mate.. I have increased the length of the CLOB column and it is loading fine now.. my bad.. thanks for your reply anyway..!
dssqt
Post Reply