Skip to main content
Solved

How can I avoid fatal errors when an input file is missing?

  • December 17, 2019
  • 3 replies
  • 203 views

chris_hvc
Contributor
Forum|alt.badge.img+1

I have a number of DXF input files feeding a workspace that writes to a SQL Server File Geodatabase. These DXF files are sometimes there, sometimes not. The fme workspace fails with a Fatal Error when the Input Reader fails to find the dxf file during "version check". As failure occurs before there is opportunity to incorporate a transformer, I can't use FileExistanceChecker or other file exists processes. Is there a workflow I can use to ensure the translation continues if the input file is missing?

Best answer by hollyatsafe

Hi @chris_hvc,

There is also an option to Ignore Failed Readers in the Navigator > Workspace parameters. This setting tells FME whether or not to continue a translation when reading a dataset fails.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • December 17, 2019

You can use a FeatureReader instead of a regular reader, trigger it via a Creator and make sure to set the file that's to be read via an attribute. If the source file can't be found the trigger feature will be output through the <Rejected> port.

The downside is that because the source file is 'unknown' at design time the FeatureReader doesn't know which feature types are present so you need to sort-of-manually specify it (or deal with the output coming through the <Generic> port).


Forum|alt.badge.img+2
  • 719 replies
  • Best Answer
  • December 17, 2019

Hi @chris_hvc,

There is also an option to Ignore Failed Readers in the Navigator > Workspace parameters. This setting tells FME whether or not to continue a translation when reading a dataset fails.


chris_hvc
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 1 reply
  • December 17, 2019

Thanks, both solutions are viable. Ultimately, I've chosen to adjust the workspace parameter "Ignore Failed Readers" to Yes as suggested by @hollyatsafe. This permits the process to 'shrug' if the file is unavailable and continue with the files that are available.