Skip to main content
Solved

Disable FFS reader during runtime

  • July 22, 2020
  • 6 replies
  • 102 views

Forum|alt.badge.img

I have various Workbenches which have FFS readers as input. In couple of WBs, there is a single FFS reader as input, whereas in few WBs, there are multiple FFS readers. As these WBs are required to be executed across various regions, some of the regions do not have one or the other FFS file. These WBs are executed using workspace runners. Before every workspace runner, i have place FileExistenceChecker transformer to check for existence of FFS file in that folder. If the FFS file exists, it is directed to that runner, else it skips and goes to the next FileExistenceChecker transformer. I have a problem with WBs having multiple FFS readers, as even if a single FFS file is not present, the FME stops midway. Is there a method to disable that particular FFS reader from the workspace runner, after it checks that the FFS file is not present in the folder ? OR any other workaround to bypass that FFS reader?

Best answer by srg

@bharat​  did you try continue Workspace Parameters > Translation > Ignore Failed Readers?

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.

6 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • July 22, 2020
Have you tried reading your FFS files with a feature reader, you should be able to handle non-existent FFS files with the Rejected Port

Forum|alt.badge.img
  • Author
  • July 24, 2020
Have you tried reading your FFS files with a feature reader, you should be able to handle non-existent FFS files with the Rejected Port

No Feature Reader doesn't work either, I get the same error 'Dataset must exist prior to reading'.


srg
Forum|alt.badge.img+10
  • Best Answer
  • August 3, 2020

@bharat​  did you try continue Workspace Parameters > Translation > Ignore Failed Readers?


Forum|alt.badge.img
  • Author
  • August 5, 2020

@bharat​  did you try continue Workspace Parameters > Translation > Ignore Failed Readers?

Thanks a ton. This has worked. But it is quite risky, as this parameter will affect other readers in the WB. Apart from FFS, I have Oracle DB readers, excel readers, csv readers too in these WBs.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • August 5, 2020

If you use a FeatureReader to read the FFS file you can handle the Rejection without having Rejected Feature Handling set to ContinueTranslation. You will still get an error about Dataset must exist prior to reading if the FFS file you are trying to read is not present, but the workspace will continue

Capture


srg
Forum|alt.badge.img+10
  • August 5, 2020

Thanks a ton. This has worked. But it is quite risky, as this parameter will affect other readers in the WB. Apart from FFS, I have Oracle DB readers, excel readers, csv readers too in these WBs.

@bharat​ may be you should consider adding a note in this workspace that the ignored failed readers has to be enabled to handle ffs readers before running this workspace and then disable after completing!