Author |
Message
|
MB Developer |
Posted: Wed Mar 12, 2014 2:16 am Post subject: File Nodes convert one format to other Error User trace |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi All..
I want convert xml format to csv using message set.
I just take 3 nodes FileInput Node,Fileoutput Node and Compute Node.
Given properties for FileInput is inputdirectory:D:\MB Development\Message Set\app1\XML
File Name or pattern : *.xml
Action : Add Time stamp and move to archive directory.
properties for FileOutput Node is Directory : D:\MB Development\Message Set\app1\CSV,
File Name or Pattern : Goods.csv (Directly given file name hardcode it ).
Select Stage and select Replace Existing File
I just created Message model library file,Crete project and flow and given all above properties,Bar file created and take libraries,Flows Build and deploy ..
In input directory 3 folders are created ,I just past xml file in Input directory xml file is move To mqsibackout folder not go to mqsiarchive..
And In Event Viewer
"""( BRK1.default ) ''FileInput'' node ''File Input'' in message flow ''SampleFileNode1'' cannot move file ''ebcaaf97-4401-0000-0080-e97b570aadee-emp.txt'' from directory ''D:\MB Development\File Nodes\app1\inbound'' to subdirectory ''mqsiarchive''.
"""
will come please help me ...
Thanks...
Last edited by MB Developer on Mon Mar 02, 2015 11:14 am; edited 1 time in total |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Mar 12, 2014 2:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There will be a proper broker error code somewhere (BIPnnnn). That will help you find out what the problem is. _________________ 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 |
|
 |
MB Developer |
Posted: Wed Mar 12, 2014 3:02 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi smdavies99..
please help me how to find that BIPxxxx Code.
I dont get any BIPxxxx Code..in Event viewer ..
then how to find that ... |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 12, 2014 5:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MB Developer wrote: |
I dont get any BIPxxxx Code..in Event viewer .. |
Yes you do; if it's not visible then your Event Viewer is configured to suppress them or you've discovered a bug in the IBM software.
Given the text of the error message, I'd hypothisise that the WMB software doesn't have correct permissions to move the file in Windows. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Mar 12, 2014 7:15 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I'm not sure, but I think the error only goes to Windows Event Viewer if the flow does not handle it. If the flow has an error handling flow attached to the Catch terminal of the input node then it will probably not be visible in Event Viewer.
However, the Exception List will quote the IBM error number. And a user trace will give the full text of the error - this is by far the most effective way to debug a message flow. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 12, 2014 8:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kimbert wrote: |
I'm not sure, but I think the error only goes to Windows Event Viewer if the flow does not handle it. If the flow has an error handling flow attached to the Catch terminal of the input node then it will probably not be visible in Event Viewer. |
Another good reason not to use Windows....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Simbu |
Posted: Wed Mar 12, 2014 8:35 am Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
I had same issue finding BIP Code with Windows Event Viewer before and finally found that Event ID in the Event Viewer is the 4 digit BIP code. |
|
Back to top |
|
 |
MB Developer |
Posted: Wed Mar 12, 2014 8:40 pm Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Simbu,Vitor,kimbert and smdavies99..
In event viewer error is.....but in this I not found any BIP code..
( BRK1.default ) ''FileInput'' node ''File Input'' in message flow ''SampleFileNode1'' cannot move file ''ebcaaf97-4401-0000-0080-e97b570aadee-emp.txt'' from directory ''D:\MB Development\File Nodes\app1\inbound'' to subdirectory ''mqsiarchive''.
The ''FileInput'' node attempted to move a file to a subdirectory but failed. The reason might be that there is a file with the same name in the subdirectory. Alternatively, the file system might be preventing the action; for example, the file might be locked.
For FileInput nodes, ensure that the 'mqsiarchive', 'mqsitransitin', and 'mqsibackout' subdirectories are available and accessible. For FileOutput nodes, ensure that the 'mqsiarchive' subdirectory is available and accessible, and that the correct 'Output file action' property is set. File system permissions and security settings might be preventing the correct action of the node. For more information, see the "FileInput node" and "FileOutput node" sections of the WebSphere Message Broker online documentation. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Mar 13, 2014 12:19 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Attach a Trace node to the catch terminal of your file input node. Set the output pattern to be ${Root} and send it to a file.
Run your test again and you will see the complete exceptionList. That will contain the BIP error code along with an explanation of the problem.
All Broker Development 101. _________________ 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 |
|
 |
Vitor |
Posted: Thu Mar 13, 2014 6:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MB Developer wrote: |
The ''FileInput'' node attempted to move a file to a subdirectory but failed. The reason might be that there is a file with the same name in the subdirectory. Alternatively, the file system might be preventing the action; for example, the file might be locked.
For FileInput nodes, ensure that the 'mqsiarchive', 'mqsitransitin', and 'mqsibackout' subdirectories are available and accessible. For FileOutput nodes, ensure that the 'mqsiarchive' subdirectory is available and accessible, and that the correct 'Output file action' property is set. File system permissions and security settings might be preventing the correct action of the node. For more information, see the "FileInput node" and "FileOutput node" sections of the WebSphere Message Broker online documentation. |
Vitor wrote: |
Given the text of the error message, I'd hypothisise that the WMB software doesn't have correct permissions to move the file in Windows. |
What more do you need? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MB Developer |
Posted: Thu Mar 13, 2014 6:42 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Vitor...
( BRK1.default ) ''FileInput'' node ''File Input'' in message flow ''SampleFileNode1'' cannot continue executing. See the following message number ''3315'' for details of the problem preventing execution.
The ''FileInput'' node encountered an exception that prevented it from running successfully. This message will be issued repeatedly until the problem is solved. No further messages will be processed by this node until the message flow is restarted.
To solve the problem:
- Stop the message flow and any other message flow that refers to the directory.
- Read the referenced message, which is likely to be shown soon after this message in the event log.
- Solve the problem that is identified in that message.
- Check that the files mentioned in that message are in the correct directory, and that there are no files with the same name in the 'mqsiarchive', 'mqsitransitin', or 'mqsibackout' directories. If necessary, delete, rename, or move files so that there is only one file with that name in the input directory.
- Restart the message flow.
For more information, see the "FileInput node" section of the WebSphere Message Broker online documentation. |
|
Back to top |
|
 |
MB Developer |
Posted: Thu Mar 13, 2014 6:51 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi All Vitor,smdavies99,Simbu,Vitor & kimbert..
I found the error it's my mistake
That is In File Input Node -->Properties --> Input Message Parsing --> I am not give any Message Domain So it gives error
Now I just select XMLNSC:For XML Message (name space aware...)
Then it is work ...
Thanks all for giving suggestions ..
and sorry to post with out seeing my small mistake because I am new to message broker development ..
Thanks to all... |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 13, 2014 7:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MB Developer wrote: |
sorry to post with out seeing my small mistake because I am new to message broker development .. |
S'ok - it's always the small mistakes that are hardest to find.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Mar 13, 2014 9:19 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
If you had taken a user trace you would have found this within 10 minutes. Do you know how to do that? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
MB Developer |
Posted: Thu Mar 13, 2014 8:36 pm Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
kimbert wrote: |
If you had taken a user trace you would have found this within 10 minutes. Do you know how to do that? |
I dont know how to work with user trace..
please help me how to use it and what is the use of user trace.. |
|
Back to top |
|
 |
|