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 » IIB V9 File Input Node and exception (validation?) handling

Post new topic  Reply to topic
 IIB V9 File Input Node and exception (validation?) handling « View previous topic :: View next topic » 
Author Message
Dave Ziegler
PostPosted: Fri May 09, 2014 12:43 pm    Post subject: IIB V9 File Input Node and exception (validation?) handling Reply with quote

Centurion

Joined: 15 Apr 2014
Posts: 118

Using a File Input node considering each line as a message vs. the entire file as a single message, is it possible to configure it in such a way that either:

a) If the entire file isn't valid, don't process any distinct line item messages, or
b) If a bad line is hit, skip it, and pick up processing at the next valid record (throw away bad lines/messages)

I've been trying various combinations on Parser Options, Records and Elements, Validation, and Transactions, but haven't hit one yet that appears to do what I want. Maybe I just can't do this all with one node!

(Note: I am using DFDL and this is a fixed-length file, each line terminates with %NL;)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 09, 2014 1:24 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You have the possibility to use 2 different messages in your model.
A) message one => one line indiscriminate of contents
b) message two => a choice of formats as described by the line content...

Use message one and propagate with a try Catch
Down the propagate path parse again with message two...

Hope it helps
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Dave Ziegler
PostPosted: Fri May 09, 2014 1:29 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2014
Posts: 118

If I understand you... read the entire file and treat as one message. If OK-> continue to next node and parse individual line messages. If invalid->take exception path. Close?

What if I don't want to read an entire file as a message due to size or some other consideration? Separate topic?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 09, 2014 1:50 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Your parsing model is the line.
Now you can read the entire file as one message with multiple lines And use large message techniques... or record by record.... it really makes no difference in this regard.


What you do want to be able to do, is use a try-catch node to isolate your detail parsing from errors that would prevent you from fetching the next record...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Dave Ziegler
PostPosted: Fri Jun 13, 2014 8:02 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2014
Posts: 118

fjb_saper, Edit: your email made a light bulb go on so I will try something else and get back to you.
Back to top
View user's profile Send private message
kimbert
PostPosted: Sun Jun 15, 2014 11:32 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The trick is to model the file as a sequence of lines, with each line being a string or a BLOB ( and not a sequence of fields ). Later in the flow, use an RCD node to switch to a more detailed model.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB V9 File Input Node and exception (validation?) handling
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.