Page 1 of 1

XML - Xalan error

Posted: Mon May 28, 2018 8:51 am
by dstager
I am getting sporadic errors while processing XML messages from MQ Connector. The structure is:

MQ -> Transformer -> Copy Stage -> XMLInput -> DB table.

`Xalan fatal error (publicId: , systemId: , line: 1, column: 3606): Invalid character (Unicode: 0x1A)

1. I've read that Datastage internally might split up the message into 512 chunks (causing the error), but I am not using a Sequential File stage...does the Copy Stage share similar characteristics of limited memory caching/chunking?

Posted: Tue May 29, 2018 4:15 am
by eostic
Not sure about the chunking, but it certainly could be that a stray bad character got into your xml content from somewhere. I often send the strings thru an ereplace() upstream somewhere to zap any bad characters into blanks.

Ernie

Posted: Fri Jun 01, 2018 12:38 pm
by dstager
Thanks for the tip...however, ereplace() would only work if we knew or anticipated what the error was...no? Is there a generic function to zap bad characters?

Posted: Fri Jun 01, 2018 2:21 pm
by kphanisharma
Looks like and character set conversion issue. 0x1A is substitue character and I think it will remain the same for all the bad characters. So, you can try ereplace() on that.

Posted: Tue Jun 05, 2018 8:11 am
by dstager
What would be to syntax of ereplace to remove character set 0x1A?

Second question...Is it possible to reject the problematic Message into a file/table instead of just the 'warning message?