Skip to main content

I want to log some workbench results directly to a database. As a template to start from I followed this example https://community.safe.com/s/article/shutdown-python-scripts-in-fme#ex3

Works greeat, only issue is fme.totalFeaturesRead and fme.totalFeaturesWritten evaluates to 0 when there are 10'' objekts in my workbench which is dynamic.

How would one go about to get the totalFeaturesRead and written for a dynamic workbench?

 

fme.totalFeaturesRead i evaluated if a regular reader is used. But i am using FeatureReader / Writer - in that case it is not reported. But why not?

Yeah it's a known issue with the featureReader/Writer: https://community.safe.com/s/bridea/a0r4Q00000HbrxCQAR/include-featurewriter-counts-in-the-total-features-written-stats

 

You can vote on the idea and link this Question


You should also keep in mind that the FeaturesWritten summary data isn't always accurate - there are instances where a feature is counted as written but is actually skipped (because of inalid data for example)

 

You can read a bit more about it here

https://community.safe.com/s/question/0D54Q000080hTJTSA2/featurewriter-silently-dropping-bad-features-and-total-features-written-count-is-wrong


Reply