Using ArcGIS Pro 3.1.2 with Enterprise Portal 11.0
Is it not possible to update multiple fields using a Batch calculation?
I'm attempting to create a very basic batch calculation rule as part of a test, but it keeps failing. The same code when used as an Immediate calculation works:
return {
"result" : {
"attributes" : {
"UNIT_ID" : $feature.UNIT_ID,
"SITE_ID" : 'Location Test',
"SITE_NAME" : 'Location Test'
}}}
When I run it, I receive this error:
The server log for the error reads:
If I change the rule to "return $feature.UNIT_ID" it works, so I know the value is compatible.
Solved! Go to Solution.
You probably have set UNIT_ID as field for the rule? In that case, it will try to insert a dictionary into that field, which fails. You have to leave the field empty.
You probably have set UNIT_ID as field for the rule? In that case, it will try to insert a dictionary into that field, which fails. You have to leave the field empty.
That makes sense. After changing it to be empty, it now says, "The index passed was not within the valid range."
Hey Kade,
this bug is a known issue that has been fixed in 11.1 and ported back to 10.9.1 Patch 5 (ArcGIS Server 10.9.1 Utility Network and Data Management Patch 5)
Can you try on those platforms if possible? If you feel this need to be ported back to 11.0 you may contact support and request a hotfix
bug reference BUG-000160904
thanks