Skip to main content
Solved

A problem with Statistics Calculator

  • August 11, 2020
  • 7 replies
  • 134 views

jan
Contributor
Forum|alt.badge.img+1
  • Contributor
  • 50 replies

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?

Best answer by jan

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

jan
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • August 11, 2020

Using fme 2019.2


srg
Forum|alt.badge.img+10
  • 122 replies
  • August 11, 2020

@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
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • August 11, 2020

@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.


jan
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • Best Answer
  • August 11, 2020

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


jan
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • August 11, 2020

Should this be reported as a bug!?


DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 345 replies
  • August 11, 2020

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!


jan
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • August 12, 2020

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.