Hey all,
I have a simple arcade expression that calculates an area name string to a point that falls within that area. I'm trying to publish the feature service from Pro 2.8.3, to Portal. The two datasets (point, and poly) are registered datasets on Server 10.8.1.
var outerGeom = FeatureSetByName($datastore, "Test_Areas", ["name"])
var featureWithin = Intersects(outerGeom, Geometry($feature))
if(Count(featureWithin) > 0) {
var layer = First(featureWithin);
return layer.name;
} else {
return null;
}
I am following the instructions on Share Datasets with Attribute Rules. At step 5, under "Share datasets with attribute rules", it mentions that I have to publish the referenced registered data as a feature, in addition to the map image layer. Am I interpreting that correctly?
When I attempt to publish the two features as a web layer, I get an error, suggesting that referenced data is not compatible. To be clear, these datasets are not yet feature services; they reference data stored on the server.
(same is true with the polygon feature)
The referenced data store points to a folder on the server, where my FGDB (along with several other active registered FGDB's) is/are contained. Can someone help me to understand what it is that I'm doing wrong?
Thanks in advance... -MG
Solved! Go to Solution.
I republished my data from our org's enterprise geodatabase via a SQL Server connection. This resolved the issue.
I republished my data from our org's enterprise geodatabase via a SQL Server connection. This resolved the issue.