<?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: Feature update failing to find and change a record in a table in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627489#M1794</link>
    <description>&lt;P&gt;Filtered_table is a featureset(think feature class).&amp;nbsp; You need to call First to get first record or loop over it.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 20:09:13 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2025-06-26T20:09:13Z</dc:date>
    <item>
      <title>Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627447#M1793</link>
      <description>&lt;P&gt;Setting up an attribute rule on Update, with the intent that an edit in this feature class will find and change a row in a table. Think in terms of trying to track when a valve or a circuit in a system is temporarily changed from its normal setting - trying to track ones that have been changed and when they go back to normal. The "change" portion of the process has been implemented successfully in a different rule. This is intended to find a row in the table with the GlobalID from the feature class and a Temp Start Time, but no Temp End Time - the edit will "close out" that record by fill in the Temp End Time.&lt;/P&gt;&lt;P&gt;Errors are coming from line 21 of this screenshot, with the message: "Indexable type expected."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-26 135154.png" style="width: 801px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135233iFEED701E901CC626/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-06-26 135154.png" alt="Screenshot 2025-06-26 135154.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 19:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627447#M1793</guid>
      <dc:creator>MikeCyclops</dc:creator>
      <dc:date>2025-06-26T19:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627489#M1794</link>
      <description>&lt;P&gt;Filtered_table is a featureset(think feature class).&amp;nbsp; You need to call First to get first record or loop over it.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 20:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627489#M1794</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-06-26T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627494#M1795</link>
      <description>&lt;P&gt;Is that still necessary when there's only one record in the table? The FeatureGID in the table matches the GlobalID from the feature class + the table record with a null date in that field - should be unique. Phrasing it another way, think like the table is tracking a light switch being flipped off (and tracked on TempStartDate in the table) and flipped back on (TempEndDate) - we shouldn't have instances where we come into an unlit room and flip the light switch off again.&lt;/P&gt;&lt;P&gt;Edit: I tried adding another variable. On line 16 above, insert the line "var match_table = first(filtered_table)" . I then changed the global id reference on line 21 to be "match_table.GlobalID". It yielded a different error message: Invalid Function arguments.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 20:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627494#M1795</guid>
      <dc:creator>MikeCyclops</dc:creator>
      <dc:date>2025-06-26T20:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627520#M1796</link>
      <description>Yes&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jun 2025 21:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627520#M1796</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-06-26T21:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627781#M1797</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried adding another variable. On line 16 above, insert the line "var match_table = first(filtered_table)" . I then changed the global id reference on line 21 to be "match_table.GlobalID". It yielded a different error message: Invalid Function arguments.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 14:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627781#M1797</guid>
      <dc:creator>MikeCyclops</dc:creator>
      <dc:date>2025-06-27T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Feature update failing to find and change a record in a table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627795#M1798</link>
      <description>&lt;P&gt;Post your code as a code snippet using JS as formatter.&amp;nbsp; Will make it easier to provide feedback&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 14:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/feature-update-failing-to-find-and-change-a-record/m-p/1627795#M1798</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-06-27T14:53:16Z</dc:date>
    </item>
  </channel>
</rss>

