Author |
Message
|
dhaefi |
Posted: Wed Sep 11, 2013 4:03 am Post subject: FileRead Node delete empty file |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed Sep 11, 2013 4:07 am Post subject: |
|
|
 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 |
|
 |
dhaefi |
Posted: Wed Sep 11, 2013 4:36 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed Sep 11, 2013 4:41 am Post subject: |
|
|
 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 |
|
 |
dhaefi |
Posted: Wed Sep 11, 2013 4:53 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed Sep 11, 2013 4:55 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Sep 11, 2013 6:26 am Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Wed Sep 11, 2013 6:41 am Post subject: |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Wed Sep 11, 2013 6:43 am Post subject: |
|
|
 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 |
|
 |
|