Posted: Wed Dec 06, 2006 8:32 am Post subject: Invalid message body/header sequence 'none'/'MQHRH2
Partisan
Joined: 19 Aug 2002 Posts: 305 Location: Green Mountains of Vermont
I have been trying to resolve this error message for a while now, but have not been able to get around it. Perhaps a second set of eyes.
A plain message is received into input node. In the compute node, I add and RFH2 header and add publication information and then send to publication node, but I get this error. The inbound message is coming as MQMD.Format= ' '; I need to change this to MQHRF2 correct? to add RFH2 header? The error occur on popaget to output node.
Here is my ESQL:
Code:
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.(MQMD.Field)Format = 'MQHRF2 ';
-- Build RFH2 Message Header
SET OutputRoot.MQRFH2.(MQRFH2.Field)Version =2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format =' ';
SET OutputRoot.MQRFH2.(MQRFH2.Field)CodedCharSetId =1208;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Flags =0;
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID =1208;
SET OutputRoot.MQRFH2.pcs.Command = 'Publish';
SET OutputRoot.MQRFH2.pcs.Topic = 'MCS2/'||Event||'/'||Type;
SET OutputRoot.MQRFH2.pcs.PubOpt = 'Local';
SET OutputRoot.MQRFH2.usr.Event =Event;
SET OutputRoot.MQRFH2.usr.Type =Type;
SET TotalLength = length("InputRoot"."BLOB"."BLOB")- 8;
Set "OutputRoot"."BLOB"."BLOB" = SUBSTRING("InputRoot"."BLOB"."BLOB" FROM 13 for TotalLength);
Joined: 19 Aug 2002 Posts: 305 Location: Green Mountains of Vermont
The subject was the error message. I did some further playing around and used the MQI constant for the MQMD.Format and that seemed to work. The message now flows to the publication node, where it fails with an Unknown or invalid attribute.
Code:
t)[3640]BIP7056E: Attribute value not found or invalid Attribute value not found.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum