Select to view content in your preferred language

Interset 2 Featuresets uisng Arcade in a Dashboard Data Expression

552
0
06-28-2023 04:11 PM
MichaelMacRae
Occasional Contributor

How does one intersect 2 feature sets. I am creating a Data Expression in Dashboard. I reference 2 layers like so:

 

var fs1 = FeatureSetByPortalItem(Portal("https://arcgis.com"), "myitemid", 42, ["FIELD1", "FIELD2"], True);
var fs2 = FeatureSetByPortalItem(Portal("https://arcgis.com"), "myitemid", 43, ["FIELD1", "FIELD2"], True);

 

When I try to intersect the 2:

 

return Intersects(fs1, fs2)

 

I keep getting an error:

Test execution error: Execution error - Invalid parameter. Verify test data.

I can successfully return each of the 2 featursets, so I don't believe the error is there. It's only when I try to intersect, do I get the error. Any suggestions?

For reference I tired Intersection as well. Same error comes up.

0 Kudos
0 Replies