Skip to main content
Solved

How can I call a workspace with (some) of his input data missing?


I have a workspace which merges several Shapefiles. The filenames/locations are handed over as parameters and the workspace is called through a batch file. How can I accomodate cases where some of the input files are not present?

There is no interaction between the missing Shapefiles and the other ones in the workspace, they just get written to a common destination.

Best answer by geomancer

There is a workspace option to Ignore Failed Readers in Navigator > Workspace Parameters. This setting tells FME whether or not to continue the workspace when reading a dataset fails. See this question.

The value of this option is written into the workspace, so the setting will also be honoured when you call the workspace through a batch file.

View original
Did this help you find an answer to your question?

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

Do you have one Shapefile reader or multiple ones? Are you merging feature types?

 

In terms of reading the data FME doesn't really care when a file is missing, but you may have situations with your transformers where missing one stream of data can either lead to FME terminating the workspace (depending on what you have set for the Rejected Feature Handling) or unexpected results. What those might be really depends on your workspace.

This is something that should be considered carefully: what can happen if part of the input is missing? Does that mean you also only get part of the output? Is it writing to a folder where there might already be an older set of output files, potentially leading to a situation where you have a mix of old and new files?


geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • Best Answer
  • October 20, 2021

There is a workspace option to Ignore Failed Readers in Navigator > Workspace Parameters. This setting tells FME whether or not to continue the workspace when reading a dataset fails. See this question.

The value of this option is written into the workspace, so the setting will also be honoured when you call the workspace through a batch file.


  • Author
  • October 20, 2021
geomancer wrote:

There is a workspace option to Ignore Failed Readers in Navigator > Workspace Parameters. This setting tells FME whether or not to continue the workspace when reading a dataset fails. See this question.

The value of this option is written into the workspace, so the setting will also be honoured when you call the workspace through a batch file.

This is what I was looking for. Thanks.


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