Skip to main content
Open

Output if there are no features to output

Related products:FME FormIntegrationsTransformers
danilo_fme
raghavendrans
a.bradley
  • danilo_fme
    danilo_fme
  • raghavendrans
    raghavendrans
  • a.bradley
    a.bradley

a.bradley
Participant

Could there be an option so that if no features make it to the FeatureWriter, there is still a way to know that the workspace has run but that there were no outputs? 

I have found a workaround by generating a count_id from the transformer before the writer and another count_id directly from a creator. From the creator, the count will always = 1. From the transformer, the count varies depending on how many features pass through. These are input to a FeatureJoiner which joins on both count_id’s and if there is any output from the UnjoinedLeft port then this feeds an AttributeFileWriter to inform the user there was no output.

3 replies

crutledge
Influencer
Forum|alt.badge.img+32
  • Influencer
  • May 12, 2025

Hi ​@a.bradley I think the summary will give you just that. A summary count (including a 0 count) of features written….i think.
 

 


PierreAtSafe
Safer
Forum|alt.badge.img+1
NewOpen

raghavendrans
Enthusiast
Forum|alt.badge.img+14

I think the NoFeaturesTester tells whether any FME features passed through the transformer or not?

https://hub.safe.com/publishers/safe-lab/transformers/nofeaturestester


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