XSLT Processor: Unknown element on the output.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
actiview
Participant
Posts: 20
Joined: Fri Sep 12, 2008 1:19 pm

XSLT Processor: Unknown element on the output.

Post by actiview »

Hi,

We have a process that read XML file(by XML input stage) and extract some attributes and 1 element to output file.
The process was working on Windows environment.
But now in UNIX it is not working.
The attributes are written to the output file.
But the element is not written and it is empty and I got 2 warnings:

1)GBF_XML_ROOT..XML_HIERARCHY: XSLT Processor: Unknown element on the output. Element Name = "BILL_DATES"
2)DataStage Job 16 Phantom 10334
XSLT Warning: Invalid argument type in the function 'nodeset'.Source tree node: BILL. (, line 65, column 89.)
DataStage Phantom Finished

Can you help me please?

Thanks
Moshe
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

haven't seen these....let's start with the messages themselves......are you using the checkbox for validation? Is BILL_DATES a valid element? Is there a schema reference in your xml? Can you open the XML with IE? if there is a schemalocation attribute, what happens if you try a run after deleting it from the header? .....let's try to find out what the offensive parts of the document are....

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

hmm. paste a chunk of the xml here, and let's see your xpath for the column.... might be something odd, or may just be an anomaly on your new platform...

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
actiview
Participant
Posts: 20
Joined: Fri Sep 12, 2008 1:19 pm

Post by actiview »

<ROOT>
<BILL>
<BILL_INFO paymentDueDate="2008-06-15" billSequenceNo="000000000003" billerId="8888888888" billerName="STP" billNumber="000000000003" version="0001">
<BILL_DATES billEndDate="2008-06-01" billStartDate="2008-06-01" billCloseDate="2008-06-01"/>
<FREE_ELEMENT/>
</BILL_INFO>
<ENTITY>
<ENTITY_HEADER id="1" type=" 100" name="STP" description="Izeak Phone"/>
<CONTACTS>
<CONTACT type="Bussins" lastName="Inestain" midName="Jackove" organizationName="Technion" isPrefered="0">
<ADDRESS type="Mail">
<COUNTRY code="1" decode="Haifa"/>
<STATE code="1" decode="Israel"/>
<CITY code="1" decode="Haifa"/>
<ZIP value="39026"/>
<STREET number="35" name="Hanita"/>
<PHONE_NUMBER value="417639533"/>
<EMAIL value="lllkkk@amdocs.com"/>
<FREE_ELEMENT/>
</ADDRESS>
<FREE_ELEMENT/>
</CONTACT>
</CONTACTS>
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

ok.... nothing appears to be incorrect in the visible content. Some thoughts:

-- write a simple job that only retrieves BILL_DATES....have one column with a longvarchar column called "XMLTEST", and with a Description property of /ROOT/BILL/BILL_DATES/ ....you should get the whole string.

-- In your job that gets the error, are you actually retrieving a single column for BILL_DATES? ...there isn't a reason, unless you are doing a special technique.

-- since you said it works on another platform, can you look at the xml document itself in an independent editor that shows you hex? Make sure there aren't any odd and unexpected characters.....white space should just be blanks or CR or CRLF.

Good luck......

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply