<?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: Update multiple attributes in single Attribute Rule in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269949#M66973</link>
    <description>&lt;P&gt;Hi, yes, I have been building this step by step, so the names are correct.&lt;/P&gt;&lt;P&gt;I just did a re-type of the code and now it seems to be working.&amp;nbsp; Maybe the order in which the fields are updated makes a difference??&amp;nbsp; Or the formatting of how I have things typed in??&amp;nbsp; Now it looks like this and seems to be working.&lt;BR /&gt;&lt;BR /&gt;This is my first time working in Arcade.&amp;nbsp; It seems very finicky.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1679419203244.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65824iF09BDA5EEE4859C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1679419203244.png" alt="BrianBulla_0-1679419203244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 17:20:32 GMT</pubDate>
    <dc:creator>BrianBulla</dc:creator>
    <dc:date>2023-03-21T17:20:32Z</dc:date>
    <item>
      <title>Update multiple attributes in single Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269903#M66965</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm following the tutorial here: &lt;A href="https://community.esri.com/t5/attribute-rules-videos/update-multiple-fields-with-a-single-attribute/m-p/1016597#M16" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-videos/update-multiple-fields-with-a-single-attribute/m-p/1016597#M16&lt;/A&gt; , but can't seem to get this to work.&amp;nbsp; Can anyone provide some insight??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//first get the intersecting grid&lt;BR /&gt;var gridNo = FeatureSetByName($datastore, "LAND_Grid", ["GRIDNO"], false);&lt;BR /&gt;var intersectingGrid = first(intersects(gridNo, $feature));&lt;/P&gt;&lt;P&gt;//return nothing if no intersection&lt;BR /&gt;if (intersectingGrid==null)&lt;BR /&gt;{return null};&lt;/P&gt;&lt;P&gt;return&lt;BR /&gt;{"result" :&lt;BR /&gt;{"attributes" :&lt;BR /&gt;{"FACILITYID" : "HYD-" + intersectingGrid.GRIDNO + "-" + NextSequenceValue("SeqHydrants"),&lt;BR /&gt;"GRIDNO" : gridNo}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 15:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269903#M66965</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-03-21T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update multiple attributes in single Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269919#M66967</link>
      <description>&lt;P&gt;You are attempting to populate the GRIDNO attribute with a FeatureSet (gridNo) instead of a value. Did you want an attribute from the original feature ($feature.yourField) in there?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269919#M66967</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-03-21T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update multiple attributes in single Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269939#M66971</link>
      <description>&lt;P&gt;Oh geez.&amp;nbsp; Yeah....that is a problem.&amp;nbsp; Always good to have a second set of eyes, but still something is not working even with this update.&amp;nbsp; Those are for sure the correct field names.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return&lt;BR /&gt;{"result" :&lt;BR /&gt;{"attributes" :&lt;BR /&gt;{"FACILITYID" : "HYD-" + intersectingGrid.GRIDNO + "-" + NextSequenceValue("SeqHydrants"), "GRIDNO" : intersectingGrid.GRIDNO}}}&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269939#M66971</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-03-21T16:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Update multiple attributes in single Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269947#M66972</link>
      <description>&lt;P&gt;Have you checked whether you're getting back all the values you're expecting by using the &lt;A href="https://developers.arcgis.com/arcade/guide/debugging/#console" target="_self"&gt;Console&lt;/A&gt;? Make sure your sequenceName is correct.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269947#M66972</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-03-21T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update multiple attributes in single Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269949#M66973</link>
      <description>&lt;P&gt;Hi, yes, I have been building this step by step, so the names are correct.&lt;/P&gt;&lt;P&gt;I just did a re-type of the code and now it seems to be working.&amp;nbsp; Maybe the order in which the fields are updated makes a difference??&amp;nbsp; Or the formatting of how I have things typed in??&amp;nbsp; Now it looks like this and seems to be working.&lt;BR /&gt;&lt;BR /&gt;This is my first time working in Arcade.&amp;nbsp; It seems very finicky.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1679419203244.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65824iF09BDA5EEE4859C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1679419203244.png" alt="BrianBulla_0-1679419203244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-multiple-attributes-in-single-attribute/m-p/1269949#M66973</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-03-21T17:20:32Z</dc:date>
    </item>
  </channel>
</rss>

