Author |
Message
|
ajayrana |
Posted: Mon Dec 08, 2014 1:52 am Post subject: Validate all elements in DFDL - Validate node |
|
|
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 |
|
 |
kimbert |
Posted: Mon Dec 08, 2014 2:57 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Mon Dec 08, 2014 3:00 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Mon Dec 08, 2014 3:06 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Mon Dec 08, 2014 3:19 am Post subject: |
|
|
Apprentice
Joined: 08 May 2014 Posts: 35
|
Yes facet validations.
-Ajay Rana |
|
Back to top |
|
 |
kimbert |
Posted: Mon Dec 08, 2014 3:37 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Mon Dec 08, 2014 3:39 am Post subject: |
|
|
Apprentice
Joined: 08 May 2014 Posts: 35
|
We are on IIB 9.0.0
-Ajay Rana |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Dec 08, 2014 4:54 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Mon Dec 08, 2014 5:45 am Post subject: |
|
|
Apprentice
Joined: 08 May 2014 Posts: 35
|
Version 9.0 (9.0.0.20130619-1709)
-Ajay Rana |
|
Back to top |
|
 |
shanson |
Posted: Mon Dec 08, 2014 7:18 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Thu Dec 18, 2014 10:45 am Post subject: |
|
|
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 |
|
 |
shanson |
Posted: Thu Dec 18, 2014 11:08 am Post subject: |
|
|
 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 |
|
 |
ajayrana |
Posted: Thu Dec 18, 2014 10:22 pm Post subject: |
|
|
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 |
|
 |
shanson |
Posted: Fri Dec 19, 2014 12:09 am Post subject: |
|
|
 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 |
|
 |
akil |
Posted: Fri Dec 19, 2014 12:44 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
You could also try ASBISTREAM with option set to VALIDATE . _________________ Regards |
|
Back to top |
|
 |
|