<?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: Relationship class is read only in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197972#M58034</link>
    <description>&lt;P&gt;What is the version of Pro and the geodatabase type, to see if we can reproduce the issue for investigation?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 14:18:55 GMT</pubDate>
    <dc:creator>Aashis</dc:creator>
    <dc:date>2022-08-01T14:18:55Z</dc:date>
    <item>
      <title>Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197932#M58031</link>
      <description>&lt;P&gt;I created a relationship class that is attributed and I can't edit it via Argis Desktop nor via sdk?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 12:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197932#M58031</guid>
      <dc:creator>MartinBertrand</dc:creator>
      <dc:date>2022-08-01T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197945#M58032</link>
      <description>&lt;P&gt;Currently, there is no way to update the relationship class via the Pro SDK.&lt;/P&gt;&lt;P&gt;You should use Geo Processing tools to update relationship class'&amp;nbsp; relationship rules,&amp;nbsp; split policy, migration , etc.&lt;/P&gt;&lt;P&gt;I am curious to know what you are editing.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197945#M58032</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2022-08-01T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197968#M58033</link>
      <description>&lt;P&gt;I've created 2 simple stand alone tables. Clients &amp;amp; Orders.&lt;BR /&gt;&lt;STRONG&gt;Clients&lt;/STRONG&gt;: ObjectId, Name, FirstName, Email&lt;BR /&gt;&lt;STRONG&gt;Orders&lt;/STRONG&gt;: ObjectId, ClientId, OrderDate&lt;/P&gt;&lt;P&gt;Then I created an attributed Relationship Class between the 2. Like many client can have many orders.And added a IsShipped (short) field to it.&lt;BR /&gt;&lt;BR /&gt;I add a client manually, then I do the same for the Orders table where I set the apporiate ClientId.&lt;/P&gt;&lt;P&gt;Now I want to manually add an entry in the relationship class, but it's read-only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why. We were doing this easily a few months ago and it was working great. Of course we were doing it programatically in a more complexe data model than that but we hit that problem and we are trying to isolate the problem. This is the smaller we came up with. Why can't we add relationship data? Why is it read only??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PierreMasson_0-1659363087187.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47419i9EAB558C733458C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PierreMasson_0-1659363087187.png" alt="PierreMasson_0-1659363087187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197968#M58033</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2022-08-01T14:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197972#M58034</link>
      <description>&lt;P&gt;What is the version of Pro and the geodatabase type, to see if we can reproduce the issue for investigation?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197972#M58034</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2022-08-01T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197973#M58035</link>
      <description>&lt;P&gt;ArcGIS Pro 2.9.2&lt;BR /&gt;Enterprise GeoDatabase on MS SQL.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1197973#M58035</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2022-08-01T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198090#M58043</link>
      <description>&lt;P&gt;Moved to the Pro forum, not related to the&amp;nbsp; Pro SDK.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 17:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198090#M58043</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2022-08-01T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198106#M58047</link>
      <description>&lt;P&gt;You had to be using a Standard or Advanced license to create the relationship class but a reminder for those who might not know that relationship classes are read-only and cannot be edited when using a &lt;SPAN class=""&gt;Basic&lt;/SPAN&gt; license. While citing the version of AGP is important, the license level can sometimes be more important.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 17:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198106#M58047</guid>
      <dc:creator>BarryNorthey</dc:creator>
      <dc:date>2022-08-01T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198113#M58048</link>
      <description>&lt;P&gt;Using Standard&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 17:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198113#M58048</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2022-08-01T17:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198142#M58050</link>
      <description>&lt;P&gt;Just run this script (replace the 3rd line by your database sde file. Then add data in both tables and try to add a record in&amp;nbsp;&amp;nbsp;rel_Cars_CarColors. It's read only..&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import sys



gdb = 'YOUR SDE PATH FILE HERE'
arcpy.env.workspace = gdb

resObj = arcpy.CreateTable_management(gdb, 'Cars')
tbl = resObj.getOutput(0)
arcpy.AddField_management('Cars', 'Make', 'TEXT', field_length=250, field_alias='Make', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')
arcpy.AddField_management('Cars', 'Model', 'TEXT', field_length=250, field_alias='Model', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')
arcpy.AddField_management('Cars', 'Year', 'LONG', field_alias='Year', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')


resObj = arcpy.CreateTable_management(gdb, 'CarColors')
tbl = resObj.getOutput(0)
arcpy.AddField_management('CarColors', 'ColorName', 'TEXT', field_length=250, field_alias='Color Name', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')
arcpy.AddField_management('CarColors', 'ColorCodesRGB', 'TEXT', field_length=6, field_alias='RGB', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')

arcpy.CreateRelationshipClass_management(origin_table='Cars', destination_table='CarColors',
                                                     out_relationship_class='rel_Cars_CarColors', 
                                                     relationship_type='SIMPLE', forward_label='AvailableColors', backward_label='Cars',
                                                     message_direction='Both', cardinality='MANY_TO_MANY', attributed='ATTRIBUTED',
                                                     origin_primary_key='OBJECTID', origin_foreign_key='CarId',
                                                     destination_primary_key='OBJECTID', destination_foreign_key='CarColorId')

tbl = 'rel_Cars_CarColors'
arcpy.AddField_management('rel_Cars_CarColors', 'Status', 'SHORT', field_is_nullable='NON_NULLABLE', field_is_required='REQUIRED')&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 18:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1198142#M58050</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2022-08-01T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1211091#M59692</link>
      <description>&lt;P&gt;Nobody as a solution? I think it's a bug&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 12:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1211091#M59692</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2022-09-09T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship class is read only</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1293881#M69661</link>
      <description>&lt;P&gt;Relationship classes are still read only! Come on! Nobody has a solution to that simple problem and essential feature??&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 15:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relationship-class-is-read-only/m-p/1293881#M69661</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2023-05-29T15:38:34Z</dc:date>
    </item>
  </channel>
</rss>

