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.
XML input document parsing failed
Moderators: chulett, rschirm, roy
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
...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>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
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
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
