unable to read invalid characters from xml

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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What error message is being generated, and from which stage? Do you have NLS installed and if so, which character set are you using?
krishna81
Premium Member
Premium Member
Posts: 78
Joined: Tue May 16, 2006 8:01 am
Location: USA

Post by krishna81 »

It's not issuing any errors/warnings.The job has been successfully compleated but it processed one record instead of two.And NLS is disabled in project level.
Datastage User
chucksmith
Premium Member
Premium Member
Posts: 385
Joined: Wed Jun 16, 2004 12:43 pm
Location: Virginia, USA
Contact:

Post by chucksmith »

On the server job side, I have had to put a transformer stage between the sequential, in my case a folder stage, and the xml stage. In the transformer, I use the convert() function to change or remove the problem characters. The key is to identify those characters.
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Are you using an XML input stage? Try highlighting "Log reject errors" on the General tab

Maybe also change the transformation error mappings to "Warning" or "Fatal"
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
krishna81
Premium Member
Premium Member
Posts: 78
Joined: Tue May 16, 2006 8:01 am
Location: USA

Post by krishna81 »

yes iam using xml input stage.I hve tried with highlighting "Log reject errors" on the General tab but i didnot see any change.
even i tried with convert function using ASCII value 179 but no luck.
Datastage User
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

So there is no mention in the log of your rejected row then, once the "Log reject errors" has been turned on? Is it definitely recognising the two rows as distinct records?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

How certain are you that XMLInput is losing the row....could it be that the Trx is dropping it...perhaps due to nulls somewhere or other datatype issue?

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
krishna81
Premium Member
Premium Member
Posts: 78
Joined: Tue May 16, 2006 8:01 am
Location: USA

Post by krishna81 »

At the outset it's not able to read the record.

From the XML itself Dropping the Rows.

Seq------>XML---------->Tx----------->Seq.
0Rows 0 Rows

I believe this makes sense.
Datastage User
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

...try two things as debugging aids:

a) Use the External Source stage to read the input name of the xml document... see www.dsrealtime.com for instructions (go to the table of contents and find XML ... reading xml content for details)

b) try it in a Server job for test purposes, reading the xml document using a folder stage. If XMLInput was dying, you'd get "1" row from Seq and 0 rows from XML.

...can't say what it is exactly, but I don't trust how the Sequential Stage in EE might be reading the document.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
krishna81
Premium Member
Premium Member
Posts: 78
Joined: Tue May 16, 2006 8:01 am
Location: USA

Post by krishna81 »

Here the sequential file doing the same what the External source stage.i mean we are using Seq file stage to read the input name of the xml document.
Datastage User
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

and does the same logic fail when written in Server?
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 »

Looking at this again, what "exactly" are the characters? Can you share the string in hex here, just in case we're not seeing exactly what is represented?

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
l_homme_de_rio
Participant
Posts: 17
Joined: Fri Jul 30, 2004 1:16 am

Post by l_homme_de_rio »

Hi
I guess i m facing the same problem ...
Open your xml with Ultraedit You gonna see some garbage char before "<xml version="1.0">"
if you remove them it should work
Michel
Post Reply