Select to view content in your preferred language

Dashboard Arcade in Enterprise Not Working

145
0
02-26-2025 09:09 AM
HMarcks
Occasional Contributor

I had an arcade expression in AGOL for a dashboard chart that worked.  It got a feature set then grouped them and got statistics.  When we transitioned to an enterprise portal it stopped working.  I have been able to narrow it down to the multiplier expression.  When I add in the multiplier to convert feet to miles it fails, without the multiplier it gives me the sums of the lengths by material as expected.  Any insight into how to fix it would be appreciated.

Code That Doesn't Work

(note the "expression: 'Shape__Length * 100'")

 

// Fetches features from a public portal item
var fs = FeatureSetByPortalItem(
  Portal(""), // portal address
  "0", // portal item id
  0, // layer id
  ['Shape__Length', 'material', 'lifecyclestatus','material','installdate'], // fields to include
  true // include or exclude geometry
);

var fs_gp = GroupBy(fs, 'material', { name: 'Miles of Main', expression: 'Shape__Length * 100', statistic: 'SUM' });

return fs_gp

 

 

Test execution error: Unknown Error. Verify test data.
 

Code That Does Work

(note the "expression: 'Shape__Length'")

 

// Fetches features from a public portal item
var fs = FeatureSetByPortalItem(
  Portal(""), // portal address
  "0", // portal item id
  0, // layer id
  ['Shape__Length', 'material', 'lifecyclestatus','material','installdate'], // fields to include
  true // include or exclude geometry
);


var fs_gp = GroupBy(fs, 'material', { name: 'Miles of Main', expression: 'Shape__Length', statistic: 'SUM' });


return fs_gp

 

 

featureSet:
material Miles of Main ROW__ID
0107234.94620566963991
81601255.89580627163986
83200.083038128371164305
84309.38192855540255347
88632286.15388530544000
896610.4874339003854014
92166.42036977856264013
95940942.75132234363984
0 Kudos
0 Replies