<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch Calculate Returning Multiple Fields Issue in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322191#M1068</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 16:05:05 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-08-24T16:05:05Z</dc:date>
    <item>
      <title>Batch Calculate Returning Multiple Fields Issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322160#M1067</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.1.2 with Enterprise Portal 11.0&lt;/P&gt;&lt;P&gt;Is it not possible to update multiple fields using a Batch calculation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return {&lt;BR /&gt;"result" : {&lt;BR /&gt;"attributes" : {&lt;BR /&gt;"UNIT_ID" : $feature.UNIT_ID,&lt;BR /&gt;"SITE_ID" : 'Location Test',&lt;BR /&gt;"SITE_NAME" : 'Location Test'&lt;BR /&gt;}}}&lt;/P&gt;&lt;P&gt;When I run it, I receive this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KadeSmith_0-1692889510702.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79060i3C35FEB7F7D48586/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KadeSmith_0-1692889510702.png" alt="KadeSmith_0-1692889510702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The server log for the error reads:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KadeSmith_1-1692889557660.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79061iAF308914837D7FF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KadeSmith_1-1692889557660.png" alt="KadeSmith_1-1692889557660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I change the rule to "return $feature.UNIT_ID" it works, so I know the value is compatible.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322160#M1067</guid>
      <dc:creator>KadeSmith</dc:creator>
      <dc:date>2023-08-24T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Calculate Returning Multiple Fields Issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322191#M1068</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 16:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322191#M1068</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-08-24T16:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Calculate Returning Multiple Fields Issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322197#M1070</link>
      <description>&lt;P&gt;That makes sense. After changing it to be empty, it now says, "&lt;SPAN&gt;The index passed was not within the valid range."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 16:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322197#M1070</guid>
      <dc:creator>KadeSmith</dc:creator>
      <dc:date>2023-08-24T16:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Calculate Returning Multiple Fields Issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322227#M1072</link>
      <description>&lt;P&gt;Hey Kade,&lt;/P&gt;&lt;P&gt;this bug is a known issue that has been fixed in 11.1 and ported back to 10.9.1 Patch 5 (&lt;A href="https://support.esri.com/en-us/patches-updates/2023/arcgis-server-10-9-1-utility-network-and-data-management-patch-5" target="_self"&gt;ArcGIS Server 10.9.1 Utility Network and Data Management Patch 5&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;/P&gt;&lt;P&gt;bug reference&amp;nbsp;BUG-000160904&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 17:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/batch-calculate-returning-multiple-fields-issue/m-p/1322227#M1072</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2023-08-24T17:15:52Z</dc:date>
    </item>
  </channel>
</rss>

