XML input document parsing failed

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
vasab
Participant
Posts: 2
Joined: Wed Oct 30, 2013 2:17 pm

XML input document parsing failed

Post by vasab »

I have a job as below

External source ---- XML input ---- Seq File
External Source : Used source method as Specific Programs
Source Program : ls gave the path of the file

I am getting the error as below

XML input document parsing failed. Reason: Xalan fatal error (publicId: , systemId: , line: 0, column: 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id= path of the file..
I have validated the XML in XML SPY and I am able to open the file in IE.

Am not sure where I am missing. Please help me.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Some things to check...

...make sure that you check "URL" in the intitial settings of the stage (telling it that you are sending in a file and not xml content).

...look at the xml and see if there is an "encoding" in the header. I've seen odd things there. Try removing that whole attribute and see what happens.

...make certain that the DS userid of record for this running job is able to get to and read the directory where the xml is located.

...see if the xml has "schemaLocation="..." " ....try removing that manually and testing to see if that has anything to do with it.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
vasab
Participant
Posts: 2
Joined: Wed Oct 30, 2013 2:17 pm

Post by vasab »

Issue is resolved.

IN the external source stage , I used the below intially

[b]find[/b] path of the file -name file name | [b]awk[/b] -F "/" printing the file name and passing it to XML input stage as URL. So it was giving me the error.

Now I just used ls path of the file and passed it to XML iput stage.

Thank you
Post Reply