I have a web map that contains a hosted feature service containing two layers, a point layer and a polygon layer. There is a relationship class that now shows up in the layer tables since the last Esri update. There are also Arcade expressions set up for several of the fields, but one expression in particular broke since the last update and I haven't been able to get it working again. I now get an error in the Output console: 'JSON object is already hydrated. Verify test data' and have narrowed the cause down to the Intersects function. To be clear, this code was running without error before the last update, so I have no idea what is causing it and how to fix it. Here is the code:
var custInfoLayer = FeatureSetByName($map, "Customer Information", ["CustomerID"], true)
Console("Customer Info layer feature count " + Text(Count(custInfoLayer)))
var intFeature = Intersects(custInfoLayer, $feature)
The custInfoLayer variable is valid, it returns 15 records from the Console function. The Customer Info layer is a point layer and the feature is associated with other map layer, a polygon layer.
I understand that hydrating an object has to do with loading it with data, but don't see why that error is relevant to simply selecting an intersecting feature. There must be something else going on that I am not seeing.