Select to view content in your preferred language

Result dictionary in calculation rule not working

184
0
06-14-2022 02:11 AM
Zoggo
by
New Contributor III

I have a calculation rule and like to write back a new geometry and an attribute. I wrote this very simple calculation for testing:

return   {
    'result': {   
        'attributes':  {'BEMERKUNG':"Test"},
        'geometry': Rotate($feature,90)
    }
}

And I use this in a validation service on our Enterprise Portal. The feature class is hold in an Enterprise Geodatabase and is versioned as branch.

Zoggo_0-1655197751488.png

When I run "Evaluate Rules" I get the following Error:

Zoggo_1-1655197812562.png

I can't see what I'm doing wrong.

0 Kudos
0 Replies