Hopefully someone has some advice, I have a a bit of arcade that I can't seem to get to work. The arcade script runs eternally without returning a result:
return GroupBy(
filteredFs,
['lead_contractor_name'],
[
{name: 'failed_count', expression: 'Decode(state, "FAILED", 1, 0)', statistic: 'SUM'},
{name: 'successful_count', expression: 'Decode(state, "SUCCESSFUL", 1, 0)', statistic: 'SUM'}
]
);
I have done some debugging and the filteredFs returns as expected, however when attempting to return the GroupBy output, nothing is returned and no errors are flagged.