<?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 How to create proper RowHandle from a Row? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-proper-rowhandle-from-a-row/m-p/1516559#M11941</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I got a little bit puzzled, when I tried to use EditOperation.Delete(RelationshipDescription) from the SDK. There's a constructor, that requires you to insert "RowHandle" instances for origin and destination, I got two proper Row Instances and called "new RowHandle(Row)" - But EditOperation.Delete(RelationshipDescription) run into an Error with "Nullable not set".&lt;/P&gt;&lt;P&gt;Turned out, that EditOperation.Delete(RelationshipDescription) is implemented using RelationshipDescription.OriginRow.ObjectID, and the given new RowHandle(Row) does not properly set this value:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public long? ObjectID
    {
      get
      {
        long? objectId = this._objectID;
        if (objectId.HasValue)
          return objectId;
        return this._token?.ObjectID;
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is a bug in the SDK. Using new RowHandle(..., long objectId) worked fine.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 08:44:37 GMT</pubDate>
    <dc:creator>HUK71</dc:creator>
    <dc:date>2024-08-08T08:44:37Z</dc:date>
    <item>
      <title>How to create proper RowHandle from a Row?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-proper-rowhandle-from-a-row/m-p/1516559#M11941</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I got a little bit puzzled, when I tried to use EditOperation.Delete(RelationshipDescription) from the SDK. There's a constructor, that requires you to insert "RowHandle" instances for origin and destination, I got two proper Row Instances and called "new RowHandle(Row)" - But EditOperation.Delete(RelationshipDescription) run into an Error with "Nullable not set".&lt;/P&gt;&lt;P&gt;Turned out, that EditOperation.Delete(RelationshipDescription) is implemented using RelationshipDescription.OriginRow.ObjectID, and the given new RowHandle(Row) does not properly set this value:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public long? ObjectID
    {
      get
      {
        long? objectId = this._objectID;
        if (objectId.HasValue)
          return objectId;
        return this._token?.ObjectID;
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is a bug in the SDK. Using new RowHandle(..., long objectId) worked fine.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 08:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-proper-rowhandle-from-a-row/m-p/1516559#M11941</guid>
      <dc:creator>HUK71</dc:creator>
      <dc:date>2024-08-08T08:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create proper RowHandle from a Row?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-proper-rowhandle-from-a-row/m-p/1517234#M11944</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this.&amp;nbsp; Internally we also recently identified this same issue with the RowHandle object and how it is used within the EditOperation object.&amp;nbsp; The Create and Delete operations with regards to relationships is one of these scenarios where some gaps in functionality exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mention if the RowHandle is defined using a MapMember and objectID pair then the EditOperation Delete relationship method will work correctly.&amp;nbsp; Unfortunately it will not work if the rowHandle is defined using a Row (or with a Table/FeatureClass and objectID pair).&amp;nbsp;&lt;/P&gt;&lt;P&gt;These bugs have been fixed and will be available in the 3.4 release of the software.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for any inconvenience.&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 04:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-proper-rowhandle-from-a-row/m-p/1517234#M11944</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2024-08-09T04:44:52Z</dc:date>
    </item>
  </channel>
</rss>

