Author |
Message
|
fde |
Posted: Tue Jul 14, 2009 7:42 am Post subject: writing ExceptionList to file using fileoutput node |
|
|
Acolyte
Joined: 05 Jul 2007 Posts: 65
|
I want to use the fileoutput node to write the exceptionlist attached to my message to a file.
in the 'data location' field of fileoutput I try to refer to the exceptionlist using $ExceptionList.
Unfortunately nothing is written to the file, as if $ExceptionList ist not accessible. $ExceptionList.RecoverableException leads to an xpath exception at runtime.
If I replace fileoutput with tracenode and use ${ExceptionList} as pattern, the file is written fine.
I could imagine that this is a parser related problem. Since the exception list is out of the scope of the current message parser.
What do you think? _________________ Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology |
|
Back to top |
|
 |
jbanoop |
Posted: Tue Jul 14, 2009 10:08 am Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
is the node previous to that passing the exception list to the file output ? Use the flow debugger to verify that the exception list is visible just before the FileOutput node. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jul 14, 2009 10:12 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The ExceptionList is a folder in its own right.
IMHO, you should put a compute node before the File Output Node to assemble the actual data you want to output.
You can access it using InputRoot.ExceptionList
I often go one step further and use the Zip Node support pack and put it all into one file and then use the fileoutput node. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
sumitha.mp |
Posted: Fri Dec 28, 2012 8:40 am Post subject: |
|
|
Newbie
Joined: 21 Aug 2012 Posts: 9
|
I'm facing similar issue. Can you please let me know how you fixed this issue. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Dec 28, 2012 8:55 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
sumitha.mp wrote: |
I'm facing similar issue. Can you please let me know how you fixed this issue. |
1. Don't reopen old posts.
2. Don't double post.
3. Read the InfoCentre.
4. Use Google.
5. Take the training. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Diksha |
Posted: Thu Jan 17, 2013 2:07 am Post subject: writing ExceptionList to file using fileoutput node |
|
|
Newbie
Joined: 17 Jan 2013 Posts: 2
|
Try this,
Put a compute node before FileOutputNode
Associate a Parser to ExcepyionList to serialize it and covert it into BLOB and write it to FileOutput Node.
eg
CREATE LASTCHILD OF Environment.Variables.Test DOMAIN 'XMLNSC' Name 'MyExceptionList';
SET Environment.Variables.Test.MyExceptionList = InputExceptionList;
SET OutputRoot.BLOB.BLOB = ASBITSTREAM(Environment.Variables.Test.MyExceptionList CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);
It worked for me  |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jan 17, 2013 5:49 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Diksha,
You're new here. So, we will review some of the basic rules:
lancelotlinc wrote: |
sumitha.mp wrote: |
I'm facing similar issue. Can you please let me know how you fixed this issue. |
1. Don't reopen old posts.
2. Don't double post.
3. Read the InfoCentre.
4. Use Google.
5. Take the training. |
This topic is covered in multiple other posts. Please read them before you post. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|