Skip to main content
Solved

gml writer validation - how to fail a translation

  • February 18, 2015
  • 1 reply
  • 9 views

Hi,

 

 

I'm using the validate Output File option on the GML writer in application schema mode.

 

 

i can see in my workbench log the number of fatal errors, errors and warnings it finds.

 

But it doesn't fail the translation when it detects errors.  

 

 

How can I configure it to fail when validation finds errors?

 

I'm testing in FME desktop and this workbench will be deployed to FME Server in production. 

 

 

example messages in log:

 

<GML_1 Writer> - Setting external schema location for validation 'D:\\temp\\GML_Validation/myschema.xsd'

 

XML Validation: Error in 'D:\\temp\\GML_Validation\\output.gml' on line 11, column 40: 'value '1.11' does not match regular expression facet '[+\\-]?[0-9]+''

 

<GML_1 Writer> - Found '0' fatal error(s), '1' error(s), and '0' warning(s) while validating dataset 'D:\\temp\\GML_Validation\\output.gml'

 

Translation was SUCCESSFUL with 3 warning(s) (2 feature(s) output)

Best answer by takashi

Hi,

 

 

I'm wondering if the "Validate Output File" parameter of the writer controls that.

 

Or, the XMLValidator and the Terminator might help you.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Contributor
  • Best Answer
  • February 18, 2015
Hi,

 

 

I'm wondering if the "Validate Output File" parameter of the writer controls that.

 

Or, the XMLValidator and the Terminator might help you.

 

 

Takashi

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings