Skip to main content
Question

Hi! I have a large workspace where I need to update a table with a status message. This means that I need to update the tables status even if no features are routed to the feature writer.

  • February 1, 2023
  • 3 replies
  • 11 views

essb
Contributor
  • Contributor
  • 15 replies

Fme server

desktop version: 2022.1

 

But if no features reach the writer then I get no summary output. In what way can I solve this dilemma? 

 

image_fwThe image I provided is not of the workspace itself, but it shows the problem.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • February 1, 2023

One way to do this is to use the NoFeaturesTester from the hub.


essb
Contributor
  • Author
  • Contributor
  • 15 replies
  • February 1, 2023

Thanks nielsgerrits, I will look at that one.

 

I think I solved my own problem now. There are probably many solutions but this seems to work.

 

If I use the creator from the beginning of the workspace and I merge it in the end then I can do a check to see if features are written or not.image_fw_s


ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 225 replies
  • February 1, 2023

The initiator port of a FeatureReader includes a matched_records attribute which is the count of how many features are read. Depending on the process, you can sometimes just test on this if anything matched.