When the error “Caused by error in Summary.factor():! ‘sum’ not meaningful for factors” occurs during aggregation, it happens when the data type has been converted to Factor type in a step prior to aggregation.
Therefore, please verify that the data is in numeric type before performing aggregation.
