Posted: Sun May 22, 2005 10:15 pm Post subject: Error Message:No message Id received.
Novice
Joined: 13 May 2005 Posts: 16
Hi all,
I am having a message flow where TDS message is the input and output. Now I am also selecting a code from database in compute mode and putting a message to output queue in TDS format. When I am executing the flow the codes are retireved and next flow ends in error saying "No message Id received."I am giving TDS message as input in the form of a+...... where + is seperator.I have checked project reference properties and message set definitions.
Please let me know the reason for this error.
CREATE COMPUTE MODULE "A_B_Compute"
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyEntireMessage();
SET Environment.Variables.Result[] = (SELECT T.CD FROM Database.CODES as T);
DECLARE i INTEGER 1;
FOR xyz AS Environment.Variables.Result[] DO SET OutputRoot.Properties=InputRoot.Properties;
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MRM.Details.Result[i].CD=xyz.CD;
SET OutputLocalEnvironment.Destination.MQ.DestinationData[i].queueName= xyz.Code || '.OUT.1' ;
SET i = i + 1;
PROPAGATE;
END FOR;
The statement PROPAGATE sends the output buffer to the next node and empties it for further processing. At the end of a compute node a PROPAGATE is always done on RETURN TRUE. At this point you send an empty buffer. You need to change it to RETURN FALSE;
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