Skip to main content

I have several types of rasters in my folders (ecw, png, tiff..). Not all folders i want to process contain all of the types. In my workspace i created one reader for each type, but when one type is not available, i can not launch the workspace. How can i make a reader optional so it will accept no input data?

There is a setting under workspace parameters to Ignore Failed Readers which you could set to Yes.

 

Personally I prefer to use FeatureReaders, with a logger set to the rejected port. This allows the workspace to proceed even if the reader fails. Using FeatureReaders instead of the Ignore Failed Readers parameter gives a more granular level of control. It may be that it is acceptable for some readers to fail, but if other readers fail you want the workspace to terminate

image


Hello,
is there another possibility? We use the ignore failed reader option at the moment (could use featureReaders as well, had the same effect), and it works, but our workspace is quite complicated by now with 8 readers and the user choose wich to use...so a lot of errors in the log file all the time. That is quite annoying when you try to find an error that causes the workflow to crash with all the “irrelevant” error messages.
Is there a way to have a truly optional reader, so one that only tries to read when selected?


First of all: It is better to start a new topic with your question, instead of digging up a post that is 3 years old. Although that happens a lot here, I’ve noticed…

 

Anyway: Of  course there is a way to do what you want. Use a Folder and File Pathnames reader. Then you can first examine which files exist, which files must be processed, and based on that you can route the appropriate file- and pathnames to the right FeatureReader. No more need for the user to choose.


Thanks for sharing. I also want to know more about it. Will wait for the updates. Good day!


Reply