Select to view content in your preferred language

Error while editing published feature layer with calculation attribute rule

509
1
06-01-2023 02:12 AM
MohammedElsayed
New Contributor III

I am trying to edit a  published feature layer with a calculation attribute rule using the shape length but I get an error as below, I tried several different settings but same error.

0 Kudos
1 Reply
Randomapper
New Contributor III

This happened to me as well, but with registered feature services.  The attribute rules had already been working previously.  Working with ESRI, we had to change the expression so that it didn't directly reference the Shape.STArea() field because it changes to Shape__Area when it is published.  This started happening after applying the Portal for ArcGIS Security Update 2023.  So for instance, the rule went from "Round($feature['Shape.STArea()']/9, 2)"  to now "Round(Area($feature,'acres'), 2)".