<?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: arcpy.Describe(relationshipclass) doesn't include key fields. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311566#M24266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Bumping this thread with a related question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to automate creating relationship classes in python (ArcGIS 10.2.1). &amp;nbsp;I am able to get most of the information I need via the Describe call as shown in previous posts. &amp;nbsp;I'd like to get the properties of existing RC's and automate recreating them using the original properties (copy/paste of data not an option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I'm not able to return the Relationship Rules (eg. desc.relationshipRules) as decribed here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/relationshipclass-properties.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/relationshipclass-properties.htm"&gt;RelationshipClass properties—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation is at 10.3 and I am working at 10.2&lt;/P&gt;&lt;P&gt;You can see below that I'm able to return all the properties available for this particular rel class except the Relationship Rules, which, I know exist (also see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/344576_pastedImage_1.png" style="width: 620px; height: 183px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/344577_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone tried to return these relationship rules? &amp;nbsp;Tried to recreate via python? &amp;nbsp;Any success?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 01:34:33 GMT</pubDate>
    <dc:creator>ChrisDiMeo</dc:creator>
    <dc:date>2017-03-29T01:34:33Z</dc:date>
    <item>
      <title>arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311556#M24256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm attempting to write a script to read the relationship classes from one geodatabase to another.&amp;nbsp; These tables have identical feature and object classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should be able to select the relationshipclass in the source, use arcpy.Describe on them and get the parameter I'll need to perform an arcpy.createRelationshipClass_management.&amp;nbsp; Except the describe does not give me any access Primary / Foreign key information according to the documentation.&amp;nbsp; Is there away to get these field names because without it I can't recreate the relationship class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 04:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311556#M24256</guid>
      <dc:creator>MichaelAdornetto</dc:creator>
      <dc:date>2011-05-20T04:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311557#M24257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Michael&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am working on the same thing and encountered the same problem. If you figure it out please post your solution as will I. This is not the first time Ive started out with python for a task and had to go back to ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Henry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 13:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311557#M24257</guid>
      <dc:creator>HenryColomb</dc:creator>
      <dc:date>2011-05-20T13:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311558#M24258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently Python does not have access to the following relationship class properties &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OriginPrimaryKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OriginForeignKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DestinationPrimaryKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DestinationForeignKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tracking number of this enhancement is [NIM048192 access to relationship class key properties in Python].&amp;nbsp; The status of the enhancement is currently "deferred", which means our development team will reconsider implementing it in our next major release.&amp;nbsp; Please contact Esri Technical Support for more information or to add your name to the list of customers requesting this functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 15:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311558#M24258</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2011-05-23T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311559#M24259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this is an old thread, but can anyone provide an updated status on this "enhancement"?&amp;nbsp; NIM048192 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to write a python script that copies feature classes and relationships across from one GDB to another.&amp;nbsp; But without access to the KEY fields on the relationship, I can't recreate the relates...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311559#M24259</guid>
      <dc:creator>JeffButurff</dc:creator>
      <dc:date>2013-10-18T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311560#M24260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did anybody ever find a solution to this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 19:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311560#M24260</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2013-11-22T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311561#M24261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope, never found a solution.&amp;nbsp; As far as I know, it's still an "enhancement request".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haven't tested at 10.2, so I don't know if it's been fixed there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2013 00:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311561#M24261</guid>
      <dc:creator>JeffButurff</dc:creator>
      <dc:date>2013-11-23T00:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311562#M24262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doesn't this give you the functionality you are looking for...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy describe relationshipclass properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/RelationshipClass_properties/018v0000002n000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/#/RelationshipClass_properties/018v0000002n000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;N&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 05:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311562#M24262</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2013-11-25T05:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311563#M24263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;GSCUser85, thanks for the response.&amp;nbsp; However, if you look closely at the docs, you'll notice the most important piece of a relationship class is missing:&amp;nbsp; the key fields.&amp;nbsp; We need the key fields for both primary and foreign keys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311563#M24263</guid>
      <dc:creator>JeffButurff</dc:creator>
      <dc:date>2013-11-25T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311564#M24264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I know this is an old thread, but can anyone provide an updated status on this "enhancement"?&amp;nbsp; NIM048192 &lt;BR /&gt;&lt;BR /&gt;I'm trying to write a python script that copies feature classes and relationships across from one GDB to another.&amp;nbsp; But without access to the KEY fields on the relationship, I can't recreate the relates...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you reviewed any of these?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/64318-Detect-Relationship-in-Feature-Class-or-Table"&gt;http://forums.arcgis.com/threads/64318-Detect-Relationship-in-Feature-Class-or-Table&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/50846/copy-two-datasets-that-particpate-in-the-same-relationship-class"&gt;http://gis.stackexchange.com/questions/50846/copy-two-datasets-that-particpate-in-the-same-relationship-class&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000015s000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000015s000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311564#M24264</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-11-25T11:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311565#M24265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At 10.2.1 release, it will be possible to obtain the origin and destination class keys via python using the Describe function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Describe(&amp;lt;relationshipclass&amp;gt;).OriginClassKeys&amp;nbsp; or
arcpy.Describe(&amp;lt;relationshipclass&amp;gt;).DestinationClassKeys&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result returned will look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[(u'OBJECTID', u'OriginPrimary', u''), (u'ParcelID', u'OriginForeign', u'')]
[(u'id', u'DestinationPrimary', u''), (u'RenterID', u'DestinationForeign', u'')]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311565#M24265</guid>
      <dc:creator>JillianPenney</dc:creator>
      <dc:date>2021-12-11T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe(relationshipclass) doesn't include key fields.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311566#M24266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Bumping this thread with a related question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to automate creating relationship classes in python (ArcGIS 10.2.1). &amp;nbsp;I am able to get most of the information I need via the Describe call as shown in previous posts. &amp;nbsp;I'd like to get the properties of existing RC's and automate recreating them using the original properties (copy/paste of data not an option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I'm not able to return the Relationship Rules (eg. desc.relationshipRules) as decribed here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/relationshipclass-properties.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/relationshipclass-properties.htm"&gt;RelationshipClass properties—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation is at 10.3 and I am working at 10.2&lt;/P&gt;&lt;P&gt;You can see below that I'm able to return all the properties available for this particular rel class except the Relationship Rules, which, I know exist (also see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/344576_pastedImage_1.png" style="width: 620px; height: 183px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/344577_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone tried to return these relationship rules? &amp;nbsp;Tried to recreate via python? &amp;nbsp;Any success?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 01:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-relationshipclass-doesn-t-include/m-p/311566#M24266</guid>
      <dc:creator>ChrisDiMeo</dc:creator>
      <dc:date>2017-03-29T01:34:33Z</dc:date>
    </item>
  </channel>
</rss>

