|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Mapping a null value to a CWF Output |
« View previous topic :: View next topic » |
Author |
Message
|
sri_csee1983 |
Posted: Wed Apr 09, 2008 6:16 am Post subject: |
|
|
 Centurion
Joined: 25 Mar 2008 Posts: 125 Location: Chennai,India
|
Dear Kimbert,
The requirement is simple. For eg:
<Sample>
<field1>Raj</field2>
<field2></field2>
</Sample>
is the incoming msg means, then When converting the above one, value of Field1 is converted to CWF without any issues. When converting field2 it throws the exception and stops.
The Output setting that i have set for CWF Physical Properties of message set is
Byte Allignment Pad 0
Policy For Missing Elements Use Null Value.
Wht else can I do?
Now I have tried to check for NULL for each field in my ESQL. Waiting for testing, Will update the test results too.
Meanwhile anyother Options available, please let me know.  _________________ With Cheers,
Sri |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 09, 2008 7:26 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
So some of your input tags are empty. You need to do two things:
- XML : Open messageSet.mset and go to the XML physical format settings. Set 'Encoding [Non-numeric] null' to 'NullEmpty'. That will cause the MRM parser to create those elements with the explicit logical value NULL. Note that NULL is not the same as the empty string.
- CWF: Open the message definition file, and for each element which can be NULL, go to its CWF properties and set 'Encoding Null' to 'NullPadFill'. Make sure that you padding character for these elements is set to SPACE ( it defaults to NUL).
You should put a Trace node after the input node and watch what happens to the message tree after you change the XML settings. It will help you to understand what is going on. |
|
Back to top |
|
 |
sri_csee1983 |
Posted: Wed Apr 09, 2008 9:01 am Post subject: |
|
|
 Centurion
Joined: 25 Mar 2008 Posts: 125 Location: Chennai,India
|
Dear Kimbert,
It seems to work. But I get the following error for one field alone.
CWF Logical Tree - Message Definition Mismatch. I checked all the settings of the field and compared with the others. It is same as others. _________________ With Cheers,
Sri |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 09, 2008 12:56 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Good. I hope you understand why it works. If not, please do as I suggested in my previous post.
Quote: |
CWF Logical Tree - Message Definition Mismatch. I checked all the settings of the field and compared with the others |
Please take a user trace - it will contain the full text of the error message. This should be standard practice when diagnosing problems. The system log only contains the first line of the error, which is hardly ever enough. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|