Page 1 of 1

Fatal Error with MQ

Posted: Mon Oct 25, 2010 4:13 am
by samyamkrishna
Hi,

I am trying to put an XML in MQ.
It is giving the following FATAL Error message.

************************************************************
<MQ_Stage>: Error message (261982) exceeds the maximum message size (131056); dropping.

<MQ_Stage>: Error message (261984) exceeds the maximum message size (131056); dropping.
************************************************************

One important thing to notice is that, in the director the job gives a finished status even though there is a FATAL Error.

I went through other topics with the same error.
I have used the environment variables
$APT_PHYSICAL_DATASET_BLOCK_SIZE
$APT_MAX_TRANSPORT_BLOCK_SIZE
$APT_DEFAULT_TRANSPORT_BLOCK_SIZE
in the job and set them as '9999999' during run time.

I am not able to understand if its got something to do with MQ or with Datastage.

Let me know if there is a solution for this problem.

Regards,
Samyam

Re: Fatal Error with MQ

Posted: Mon Oct 25, 2010 4:30 am
by samyamkrishna
additional information.

This error does not occur when the XML is small.

Posted: Mon Oct 25, 2010 5:58 am
by eostic
Check MQ itself...it has limits on message size also. Did you create the queue yourself?

Do you have access to the command line utilities of MQ? Do a display of the queue (display qlocal command of the runmqsc command, depending on your release of MQ).... there is a max message length value there....

Ernie

Posted: Mon Oct 25, 2010 7:06 am
by samyamkrishna
Hi Ernie,

I did not create the queue.
But I executed the command you said.

The MAX MESSAGE LENGTH is MAXMSGL(4194304). 4MB.
The big XML I am talking about for which i am getting the FATAL error is around 1 MB.

Regards,
Samyam

Posted: Mon Oct 25, 2010 7:58 am
by eostic
ok...good...so hopefully it is here on the DS side. There's a few APT variables you need to check that impact the size of a column on the link....I don't remember which ones at the moment, but if you search the forum here on MQ and XML you'll find them fairly quickly.

Also, if the MQ Server is co-resident with DataStage, it often helps to do a comparison with a Server Job, if only for debugging purposes.

Ernie

Posted: Tue Oct 26, 2010 12:09 am
by samyamkrishna
Hi Ernie,

Now I am putting the same XML into a dataset.
when i try to view the data inside the dataset i am getting the error

**********************************************
<_PEEK_IDENT_>: Error message (261992) exceeds the maximum message size (131056); dropping.
**********************************************

Againg this error comes only for big XML.

I also did some research on the APT Variable which impact the size of a column on the link.I dint find any correct link.

Is that variable not one of this.

$APT_PHYSICAL_DATASET_BLOCK_SIZE
$APT_MAX_TRANSPORT_BLOCK_SIZE
$APT_DEFAULT_TRANSPORT_BLOCK_SIZE

Regards,
Samyam

Posted: Tue Oct 26, 2010 5:59 am
by eostic
:)

Don't try to view xml within a DataSet. Good luck with that! The viewer can't interpret it anyway, and can only show you a piece of it. Even if it works on short documents, view it instead the right way when testing --- send it to a sequential file, with all formatting turned off (no "end of line" and no quote characters). Write your xml with NO formatting and open it with IE or Firefox.

Did the Job "run" ok? If so, the content got thru the link.

Also, what did your Server Job do?

Ernie

Posted: Tue Oct 26, 2010 7:09 am
by samyamkrishna
Hi Ernie,

I tried what you suggested.

I wrote the big XML into a sequential file.

then in another job i read the sequential file.(job design below)

RowGen-----XMLInput-------MQ

1.From Row Generator I am sending the file path.
2.In the XMLInput i am gave / for input and output derivation.
3.Then loaded it into MQ.

It worked perfectly fine. :D
The FATAL error has vanished. :D

Does this mean that we have to load the data to MQ in a sequential way when big XML's are involved?

Any way, My issue is resolved now. thanks to your approach.
Let me know if there is any other approach.

I am marking this topic as resolved.

Regards,
Samyam

Posted: Tue Oct 26, 2010 7:22 am
by ray.wurlod
You are just going to love the XML handling in version 8.5!

Posted: Tue Oct 26, 2010 7:35 am
by samyamkrishna
Ha Ha :D
Just waiting for a chance to work on 8.5.