ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » File Nodes convert one format to other Error User trace

Post new topic  Reply to topic Goto page 1, 2  Next
 File Nodes convert one format to other Error User trace « View previous topic :: View next topic » 
Author Message
MB Developer
PostPosted: Wed Mar 12, 2014 2:16 am    Post subject: File Nodes convert one format to other Error User trace Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Mar 12, 2014 2:47 am    Post subject: Reply with quote

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
View user's profile Send private message
MB Developer
PostPosted: Wed Mar 12, 2014 3:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Mar 12, 2014 5:19 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Wed Mar 12, 2014 7:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Mar 12, 2014 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Simbu
PostPosted: Wed Mar 12, 2014 8:35 am    Post subject: Reply with quote

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
View user's profile Send private message
MB Developer
PostPosted: Wed Mar 12, 2014 8:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu Mar 13, 2014 12:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Mar 13, 2014 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
MB Developer
PostPosted: Thu Mar 13, 2014 6:42 am    Post subject: Reply with quote

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
View user's profile Send private message
MB Developer
PostPosted: Thu Mar 13, 2014 6:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Mar 13, 2014 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Thu Mar 13, 2014 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
MB Developer
PostPosted: Thu Mar 13, 2014 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » File Nodes convert one format to other Error User trace
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.