Skip to main content
Solved

How do I stop ChangeDetector running if no features going into Revised?


brandonguo
Contributor
Forum|alt.badge.img+3

Occasionally the upstream service from external provider might not retuning any features, in those cases, there will be 0 features going to the “Revised” stream. How do I stop ChangeDectector instead of keep running and delete existing features.

  

 

Best answer by _jacques_

You could probably do something with the NoFeaturesTester transformer from the Hub, published by Safe Software. I quickly put together a demo using a NoFeaturesTester together with a FeatureMerger set to merge 1 = 1. If there are no features entering the NoFeaturesTester, then there will be a single feature going up to the FeatureMerger, which will stop the features from reaching the ChangeDetector.

 

Good luck!

/Jacques

 

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

2 replies

_jacques_
Supporter
Forum|alt.badge.img+14
  • Supporter
  • Best Answer
  • June 26, 2025

You could probably do something with the NoFeaturesTester transformer from the Hub, published by Safe Software. I quickly put together a demo using a NoFeaturesTester together with a FeatureMerger set to merge 1 = 1. If there are no features entering the NoFeaturesTester, then there will be a single feature going up to the FeatureMerger, which will stop the features from reaching the ChangeDetector.

 

Good luck!

/Jacques

 


brandonguo
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • June 29, 2025

@_jacques_  Thanks, works perfectly. 


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