Posted: Thu Oct 11, 2007 5:45 am Post subject: Issue while transforming Comp 3 field SV999 in MQSI
Newbie
Joined: 11 Oct 2007 Posts: 4
Hi All
We are using MQ 6.0 and MQSI 2.1.
I have a requirement to read an BLOB message and am having problems. The message that I place appears to be correct in length and format but in all instances as soon as I go near the MRM parser it gives the following error.
2592 ConversionException BIP5505E: Data conversion failed: data invalid.
Type of data being read : 'packed decimal, no sign found '
Data : '0x4040'
A data conversion during reading or writing of a message failed because the input data was invalid for the output data type.
Check that the message model is correct. Review previous messages for details of the message set and message type.
Check that the processed message is of the expected format and type.
Code:
DECLARE AMTFEE DECIMAL;
SET AMTFEE = CAST("InputRoot"."MRM"."FEES" AS DECIMAL(4,3));
I read the message as BLOB and then converting it using a ResetContentDescriptor node. Then the fields are transformed using CAST function.
The element for which this error is thrown is having definition as SV999 Usage COMP3 and Length as 2 bytes.
I can not change the version from 2.1 to 6 as of now as my company is using the older version only.
Can any one help on this issue.
Thanks in anticipation
Kavita _________________ Use what talents you possess; The woods would be very silent if no birds sang there except those that sang best."
- William Blake
Don't double post (though I am glad the problem with creating new topics seems to have cleared up for you).
Please answer the questions posted on the other thread (which I've spilt into a new thread for you).
Tell your company they're taking an enormous risk. If they can move to MQ v6 they can move to WMB v6. _________________ Honesty is the best policy.
Insanity is the best defence.
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