Skip to main content

The statistics Calculator gives this error when trying to count the sum of an attribute: 2020-08-11 12:49:59|2233.8| 2.3|ERROR |Python Exception <MemoryError>: 

2020-08-11 12:49:59|2233.8| 0.0|FATAL |@Python failed to execute function `StatisticsCalculator.recordFeature'

2020-08-11 12:49:59|2233.8| 0.0|ERROR |StatisticsCalculator_2_InputProcessor (TeeFactory): StatisticsCalculator_2_InputProcessor: @Python execution failed

2020-08-11 12:49:59|2233.9| 0.1|ERROR |StatisticsCalculator_2_InputProcessor: @Python execution failed

 

There was approx 2.5M features passing through each one having a value of 1. So the sum operation should not be exhaustive. What could cause this? A bug?

Using fme 2019.2


@jan​ Can you try running the process with only the attribute for which you need the statistics?

In other words use AttributeRemover to remove attributes of not interest for statistics calculation before sending the FME features to StatisticsCalculator.


@jan​ Can you try running the process with only the attribute for which you need the statistics?

In other words use AttributeRemover to remove attributes of not interest for statistics calculation before sending the FME features to StatisticsCalculator.

I can't remove but one attribute. I need all the others.


I removed the "fme_feature_type_name" attribute and it seems to have solved the problem.


Should this be reported as a bug!?


Should this be reported as a bug!?

Hi @jan​  Please try the latest FME 2020.2 beta and if the problem still exists then please submit a case. Thanks!


Hi @jan​  Please try the latest FME 2020.2 beta and if the problem still exists then please submit a case. Thanks!

I think Safe should test it. My Client uses FME 2019.2 and it is a hard job changing version since also FME Server is used with the same version.


Reply