Select to view content in your preferred language

Batch Calculate Returning Multiple Fields Issue

945
3
Jump to solution
08-24-2023 08:15 AM
KadeSmith
Frequent Contributor

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:

KadeSmith_0-1692889510702.png

The server log for the error reads:

KadeSmith_1-1692889557660.png

If I change the rule to "return $feature.UNIT_ID" it works, so I know the value is compatible.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JohannesLindner
MVP Alum

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.


Have a great day!
Johannes

View solution in original post

3 Replies
JohannesLindner
MVP Alum

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.


Have a great day!
Johannes
KadeSmith
Frequent Contributor

That makes sense. After changing it to be empty, it now says, "The index passed was not within the valid range."

0 Kudos
HusseinNasser2
Esri Contributor

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

0 Kudos