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 » Validate all elements in DFDL - Validate node

Post new topic  Reply to topic
 Validate all elements in DFDL - Validate node « View previous topic :: View next topic » 
Author Message
ajayrana
PostPosted: Mon Dec 08, 2014 1:52 am    Post subject: Validate all elements in DFDL - Validate node Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi All,

I am trying to validate a DFDL with a validate node in my message flow.

FileInput --> Validate --> Mapping

The validation on the FileInput node is set to none as i need to log the schema validation error in some other table.

The validate node is working fine when there is a validation error in single element of the DFDL.

In case of multiple elements with validation error, the exception list shows only the error associated with first element.

Is there a way i can validate all the elements together in validate node or in ESQL ??

Thanks in advance !!

-Ajay Rana
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 08, 2014 2:57 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Have you set the 'Failure Action' property on the Validate node?

What types of 'validation error' are you trying to catch? Please be very specific.
_________________
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
ajayrana
PostPosted: Mon Dec 08, 2014 3:00 am    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Thanks for the quick reply kimbert !!

I am trying to catch errors related to xsd like mim length max length and patterns on the string.

The failure action property is set to exception list.

Thanks & Regards
Ajay Rana
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 08, 2014 3:06 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

So you are *only* trying to catch facet validation errors. Not min/maxOccurs errors?
_________________
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
ajayrana
PostPosted: Mon Dec 08, 2014 3:19 am    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Yes facet validations.

-Ajay Rana
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 08, 2014 3:37 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Which version/fix pack level of WMB / IIB?
_________________
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
ajayrana
PostPosted: Mon Dec 08, 2014 3:39 am    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

We are on IIB 9.0.0

-Ajay Rana
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Dec 08, 2014 4:54 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.

ajayrana wrote:
We are on IIB 9.0.0

-Ajay Rana


Which FixPack of IIB 9.0.0?

9.0.0.1, 9.0.0.2 etc?
_________________
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
ajayrana
PostPosted: Mon Dec 08, 2014 5:45 am    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Version 9.0 (9.0.0.20130619-1709)

-Ajay Rana
Back to top
View user's profile Send private message
shanson
PostPosted: Mon Dec 08, 2014 7:18 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

This should have been fixed in 9.0.0.2. Please can you upgrade one of your development or test systems and see if that is the case?
Back to top
View user's profile Send private message
ajayrana
PostPosted: Thu Dec 18, 2014 10:45 am    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi All,

Sorry for the late reply !! It took us some time to get the upgrade done in our environment. We are now on 9.0.0.2 for broker and toolkit both.

Thanks shason

We are able to get multiple errors while we are test parsing the file through xsd and as well when we validate the file in File input node (With Parsing Complete) of message flow.

But somehow i m not able to get multiple errors in the exception list through validate node when i keep the File Input node validation off.

Is there any way in which i can make validate node also to do the complete parsing of the input message ??

Thanks & Regards
Ajay Rana
Back to top
View user's profile Send private message
shanson
PostPosted: Thu Dec 18, 2014 11:08 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

The Validate node works by serializing the message tree and validating the content at the same time. The serialized bitstream is then discarded. So it's not always the most efficient way of validating a message. What is the reason that you are using a Validate node instead of validating using the FileInput node?
Back to top
View user's profile Send private message
ajayrana
PostPosted: Thu Dec 18, 2014 10:22 pm    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi Shason,

We are building a flow where we have to process the whole file and store the facet errors in some table which will be visible through a UI (a file upload utility).

From what you are saying i understand that we need to do this via Failure terminal of File Input node. Is it possible to serialise individual element of the message one by one so that the validations errors can be captured??

Thanks & Rana
Ajay Rana
Back to top
View user's profile Send private message
shanson
PostPosted: Fri Dec 19, 2014 12:09 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

For what you are trying to achieve I think the Validate node approach is best. I don't know why exception list is not working. Please raise a PMR.
Back to top
View user's profile Send private message
akil
PostPosted: Fri Dec 19, 2014 12:44 am    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

You could also try ASBISTREAM with option set to VALIDATE .
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Validate all elements in DFDL - Validate node
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.