<?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: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass. in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1495022#M1505</link>
    <description>&lt;P&gt;Thank you for the inputs. I am unable to proceed with versions other than the current one. However, after testing, I found that the provided code does not produce any errors or the desired results. I have made the following updates. Could you please review? Additionally, note that CGUID is a child table field being compared with the parent feature’s globalid. &lt;SPAN&gt;I want to update the ‘LSTATUS’ attribute of the child feature (EW) to match the value of the parent asset’s LSTATUS when a user updates it.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var globalId = $feature.GLOBALID
var lstatus = $feature.LSTATUS;
var tableToUpdate = "EW"; 

var returnField1 = "CGUID";
var returnField2 = "GLOBALID"

var fs = FeatureSetByName($datastore, "EW", [returnField1], false);
var feats = Filter(fs,'CGUID = @globalId'); 

if(feats == null) {
return $feature.LSTATUS;
}
else{
     for(var feat in feats){
         var updateDict = {'GlobalID': feat.CGUID, 'attributes': {}};
         updateDict['attributes'] ['lstatus'] = lStatus;
         var updateList = [updateDict];
         var editDict = {'className': tableToUpdate, 'updates': updateList};
         var editList = [editDict];
         var returnDict = {'edit': editList};  
         return returnDict; 
     }
}
return $feature.LSTATUS;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 18:05:07 GMT</pubDate>
    <dc:creator>anilkumar</dc:creator>
    <dc:date>2024-06-19T18:05:07Z</dc:date>
    <item>
      <title>A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1465918#M1443</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello all- I am working to set up our attribute rules. I would like to create a rule that will copy edited row of a feature class to another feature class when there is a status change from Attribute values.&amp;nbsp; am following this error based on code provided in the forum: EW is relationshipclass maintaining parent GLOBALID(as CGUID) and comparing anc evaluating new lstatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var globalId = $feature.globalid&lt;BR /&gt;var lstatus = $feature.LSTATUS;&lt;BR /&gt;var tableToUpdate = "EW";&lt;BR /&gt;var returnField1 = "GLOBALID";&lt;BR /&gt;var returnField2 = "globalid"&lt;BR /&gt;var fs = FeatureSetByName($datastore, "EW", [returnField1, returnField2], false);&lt;BR /&gt;var feats = Filter(fs,'CGUID = @globalId');&lt;BR /&gt;if(feats == null || Count(feats) == 0) {&lt;BR /&gt;return $feature.comments;&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;for(var feat in feats){&lt;BR /&gt;var updateDict = {'GlobalID': feat.globalid, 'attributes': {}};&lt;BR /&gt;updateDict['attributes'] ['lstatus'] = lstatus;&lt;BR /&gt;var updateList = [updateDict];&lt;BR /&gt;var editDict = {'className': tableToUpdate, 'updates': updateList};&lt;BR /&gt;var editList = [editDict];&lt;BR /&gt;var returnDict = {'edit': editList};&lt;BR /&gt;return returnDict;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return $feature.comments;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am getting an error "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Update table row : EL&lt;BR /&gt;update table row failed.&lt;BR /&gt;A requested row object could not be located.&lt;BR /&gt;Rule Name : AR23&lt;BR /&gt;Triggering Event Update&lt;/P&gt;&lt;P&gt;ClassName: EL,&lt;BR /&gt;GlobalID :{XX--xx}"&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1465918#M1443</guid>
      <dc:creator>anilkumar</dc:creator>
      <dc:date>2024-05-14T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1466089#M1444</link>
      <description>&lt;P&gt;The error essentially say you tried to update a feature that doesn't exist. So we need to debug to see what the rule is passing..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you are using 2.9.10, is it possible to move to 2.9.12?&amp;nbsp; we included many fixes for attribute rules and relationships there plus we also included the ability to print the console output to the debug diagnostics in Pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I included the updated rule with few changes..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run the rule while ArcGIS Pro monitor is running (debug mode) (CTRL+ALT+M), and look for the console output , I added **** to make searching easy, see what output you get, this will tell us more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var globalId = $feature.globalid
var lstatus = $feature.LSTATUS;
var tableToUpdate = "EW"; 

var fs = FeatureSetByName($datastore, "EW", ["globalid"], false);
var feats = Filter(fs,'CGUID = @globalId');


var editDict = {'className': tableToUpdate, 'updates': []};

var updateCount = 0;
var updateList = [];

for(var feat in feats)
{
    var updateDict = {'GlobalID': feat.globalid, 'attributes': {"lstatus": lstatus}};
    updateList[updateCount++] = updateDict
 }
//if no matches simply return. 
if (updateCount == 0) $feature.comments;

editDict[updates] = updateList;
//print out 
console("******" + text(editDict))
return {'edit': editList};
 

 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1466089#M1444</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2024-05-14T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1468189#M1445</link>
      <description>&lt;P&gt;Thank you for the details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anilkumar_0-1715721018279.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104118iDCFC90B2DAD25064/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anilkumar_0-1715721018279.png" alt="anilkumar_0-1715721018279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;currently am receiving an error message 'object not found updates' . As per your code, not wanting to update GLOBALID( here in child (relationship class ) which is CGUID. CGUID is mtaching with Parent GlobalID already. Only need to update lstatus as updated the records related to parent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1468189#M1445</guid>
      <dc:creator>anilkumar</dc:creator>
      <dc:date>2024-05-14T21:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1495022#M1505</link>
      <description>&lt;P&gt;Thank you for the inputs. I am unable to proceed with versions other than the current one. However, after testing, I found that the provided code does not produce any errors or the desired results. I have made the following updates. Could you please review? Additionally, note that CGUID is a child table field being compared with the parent feature’s globalid. &lt;SPAN&gt;I want to update the ‘LSTATUS’ attribute of the child feature (EW) to match the value of the parent asset’s LSTATUS when a user updates it.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var globalId = $feature.GLOBALID
var lstatus = $feature.LSTATUS;
var tableToUpdate = "EW"; 

var returnField1 = "CGUID";
var returnField2 = "GLOBALID"

var fs = FeatureSetByName($datastore, "EW", [returnField1], false);
var feats = Filter(fs,'CGUID = @globalId'); 

if(feats == null) {
return $feature.LSTATUS;
}
else{
     for(var feat in feats){
         var updateDict = {'GlobalID': feat.CGUID, 'attributes': {}};
         updateDict['attributes'] ['lstatus'] = lStatus;
         var updateList = [updateDict];
         var editDict = {'className': tableToUpdate, 'updates': updateList};
         var editList = [editDict];
         var returnDict = {'edit': editList};  
         return returnDict; 
     }
}
return $feature.LSTATUS;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 18:05:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1495022#M1505</guid>
      <dc:creator>anilkumar</dc:creator>
      <dc:date>2024-06-19T18:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669139#M1912</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;I’m seeing the same error on the UN's ElectricDevice feature layer in a feature server while executing Calculation rule. Tried console() for logging in ArcGIS Pro, but no messages are being printed.&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 3.3.1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&amp;nbsp;In this calculation rule, I am returning edit payload to update three feature layers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Another feature than $feature in ElectricDevice&lt;/P&gt;&lt;P&gt;2. ElectricJunction&lt;/P&gt;&lt;P&gt;3. ElectricLine&amp;nbsp;&lt;/P&gt;&lt;P&gt;I this is the only calculation rule applied on ElectricDevice feature layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RavindraSingh_0-1764318915811.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144565i796209D854474842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RavindraSingh_0-1764318915811.png" alt="RavindraSingh_0-1764318915811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 08:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669139#M1912</guid>
      <dc:creator>RavindraSingh</dc:creator>
      <dc:date>2025-11-28T08:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669143#M1913</link>
      <description>&lt;P&gt;Yes this error means the globalid you passed to the dictionary to update a feature doesn’t exist. You can avoid this by querying the layer and verify that features exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before you return the dictionary, do a console and enable logging on Pro arcgis monitor to see the arcade messages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this is service enable debug on arcgis server manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alternatively a trick I like to use is to return error message to force the rule to fail and display the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return {“errorMessage”: text(thedic) }&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 10:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669143#M1913</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2025-11-28T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: A requested row object could not be located-Attribute rule for calculating and update value on relationshipclass.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669157#M1914</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp; for your input, it helped me to resolve the issue.&amp;nbsp; However&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;a console was not visible after enabling logging on Pro arcgis monitor to see the arcade messages.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Root cause:&lt;/STRONG&gt;&amp;nbsp;I was making edit return as::&amp;nbsp;{"edit": [{"className": "ElectricDevice", "objectid: 1234, "attributes": {"status": 4}}]}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt; As a fix I am now using "globalid" instead of "objectid" to uniquely denote the feature being edited as below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;{"edit": [{"className": "ElectricDevice", "globalid:&amp;nbsp; "{dfd-23cf-dfd-dsf-3434df}", "attributes": {"status": 4}}]}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reason I was using objectid earlier:&amp;nbsp;&lt;/STRONG&gt;&lt;!--    StartFragment     --&gt;Sometimes I encounter cyclic errors in certain calculation rules when using &lt;EM&gt;globalid&lt;/EM&gt;. However, when I switch to &lt;EM&gt;objectid&lt;/EM&gt;, the cyclic error does not occur. I’m not sure of the reason behind this behavior, but it’s something I’ve observed.&lt;/P&gt;&lt;P&gt;As a practice what shall we use 'globalid' or 'objectid'?&amp;nbsp;I would appreciate your inputs, if&amp;nbsp;you can suggest possible approaches to overcome the cyclic error?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 14:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/a-requested-row-object-could-not-be-located/m-p/1669157#M1914</guid>
      <dc:creator>RavindraSingh</dc:creator>
      <dc:date>2025-11-28T14:28:01Z</dc:date>
    </item>
  </channel>
</rss>

