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 » FileRead Node delete empty file

Post new topic  Reply to topic
 FileRead Node delete empty file « View previous topic :: View next topic » 
Author Message
dhaefi
PostPosted: Wed Sep 11, 2013 4:03 am    Post subject: FileRead Node delete empty file Reply with quote

Newbie

Joined: 11 Sep 2013
Posts: 3

Hi all,

I encountered problems when trying to delete empty files with a FileRead node.

I tried many settings like:
- read whole file
- read only one byte
- set $ResultRoot/Properties as Result data location
- set Record selection expression to false()

No InputMessageParsing and no Validation is set. The file throws a Failure when trying to read it (with delete or move to archive)

do you have any suggestions for me?

best regards,
Daniel
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 11, 2013 4:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Hi Daniel -

Welcome to the forum. Your post is missing some important information:

- What version of WMB are you using (WMB versions have four digits - be sure to specify all four).

- What is the error that is thrown ?


Lance
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
dhaefi
PostPosted: Wed Sep 11, 2013 4:36 am    Post subject: Reply with quote

Newbie

Joined: 11 Sep 2013
Posts: 3

Hi,

thanks for your reply.
It, suddenly, started to delete these files still throwing an error (but at least the file is gone now)

the WMB Version is 7.0.1.5

Here is the Exception I got before the file got deleted
Quote:
Number:INTEGER:3934
Text:CHARACTER:Failed to find result data location in result message tree
Insert
Type:INTEGER:5
Text:CHARACTER:$ResultRoot/MRM


Here is the ExceptionList (removed client data) I now get
Quote:
ExceptionList
RecoverableException
File:CHARACTER:/build/S700_P/src/DataFlowEngine/ImbDataFlowNode.cpp
Line:INTEGER:1083
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmFileReadNode
Name:CHARACTER:<flowName>#FCMComposite_1_5.<flowName>#FCMComposite_1_9.<subflowName>#FCMComposite_1_9
Label:CHARACTER:<flowName>.<subflowName>.<nodeName>.FileDelete
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:MbFile.java
Line:INTEGER:330
Function:CHARACTER:moveTo
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:0
Number:INTEGER:3315
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:<subflowName>.<nodeName>.FileDelete
Insert
Type:INTEGER:5
Text:CHARACTER:<flowName>
Insert
Type:INTEGER:5
Text:CHARACTER:emptyFile.txt
Insert
Type:INTEGER:5
Text:CHARACTER:/path/to/file/
Insert
Type:INTEGER:5
Text:CHARACTER:mqsiarchive
Insert
Type:INTEGER:5
Text:CHARACTER:FileRead


Thanks,
Daniel
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 11, 2013 4:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Ok, please try again. There is no such WMB version as 7.0.1.5.

What is the version of your toolkit ( Help -> About )?

What is the version of your runtime ( mqsireportbroker )?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
dhaefi
PostPosted: Wed Sep 11, 2013 4:53 am    Post subject: Reply with quote

Newbie

Joined: 11 Sep 2013
Posts: 3

Sorry, don't know where I've found 7.0.1.5, it's fixpack 7.0.0.6

Registry format v7.0
effective level 7.0.0.6
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 11, 2013 4:55 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Ok, good. At least we know where we are in the version chain.

Next, please specify your message flow. What node connects to what node ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 11, 2013 6:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The error says the FileRead node could not move the file to the mqsiarchive directory.

It's BIP3315.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Sep 11, 2013 6:41 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.

lancelotlinc wrote:
Ok, good. At least we know where we are in the version chain.

Next, please specify your message flow. What node connects to what node ?


I really don't understand why you need that.

The Op is quite clear that the fileRead node cant (as it appears) handle files that exist but do not have anything in them.

Given that zero length files are not that uncommon, I'd suspect a bug and that a PMR might well be the next course of action.
_________________
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
lancelotlinc
PostPosted: Wed Sep 11, 2013 6:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

smdavies99 wrote:
lancelotlinc wrote:
Ok, good. At least we know where we are in the version chain.

Next, please specify your message flow. What node connects to what node ?


I really don't understand why you need that.

The Op is quite clear that the fileRead node cant (as it appears) handle files that exist but do not have anything in them.

Given that zero length files are not that uncommon, I'd suspect a bug and that a PMR might well be the next course of action.


Well, ok. The OP is new. Its a good exercise to explain the message flow composition and why certain nodes were chosen within the flow.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FileRead Node delete empty file
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.