<?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 Enforce PK/FK relationship using Attribute Assistant in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/enforce-pk-fk-relationship-using-attribute/m-p/478886#M27281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature class where you draw a polygon and put in an ID. I also have a table that is related to this feature class by the ID field. How can I make it so I cannot enter a record into the table for an ID that doesn't exist? Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feature class&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Polygon ID 1&lt;/P&gt;&lt;P&gt;Polygon ID 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Record ID 5 &amp;lt;----- I want to make this impossible to do&lt;/P&gt;&lt;P&gt;Record ID 1&lt;BR /&gt;Record ID 1&lt;/P&gt;&lt;P&gt;Record ID 2&lt;/P&gt;&lt;P&gt;Record ID 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot enforce a domain as the IDs can be unlimited. You can't auto-populate fields or domains. I have a relationship class defined between the feature class and table but I don't think this can do what I am describing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;So it looks like the above is not possible via normal ArcMap avenues... would this be possible using Attribute Assistant? If so, what's the rule look like? I have used a "CREATE_LINKED_RECORD" rule that should enforce a PK/FK relationship, but it doesn't seem to be doing so. This is the rule I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Name: State_MgmtTracts&lt;/P&gt;&lt;P&gt;Field Name: &amp;lt;empty&amp;gt;&lt;/P&gt;&lt;P&gt;Value Method: CREATE_LINKED_RECORD&lt;/P&gt;&lt;P&gt;Value Info: State_MgmtAttrb|ID_Number|ID_Number|ID_Number|ID_Number&lt;/P&gt;&lt;P&gt;On Create: True&lt;/P&gt;&lt;P&gt;On Change (Attribute): False&lt;/P&gt;&lt;P&gt;On Change (Geometry): False&lt;/P&gt;&lt;P&gt;Manual Only: False&lt;/P&gt;&lt;P&gt;Rule Weight: 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 18:03:33 GMT</pubDate>
    <dc:creator>MKF62</dc:creator>
    <dc:date>2019-01-15T18:03:33Z</dc:date>
    <item>
      <title>Enforce PK/FK relationship using Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/enforce-pk-fk-relationship-using-attribute/m-p/478886#M27281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature class where you draw a polygon and put in an ID. I also have a table that is related to this feature class by the ID field. How can I make it so I cannot enter a record into the table for an ID that doesn't exist? Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feature class&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Polygon ID 1&lt;/P&gt;&lt;P&gt;Polygon ID 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Record ID 5 &amp;lt;----- I want to make this impossible to do&lt;/P&gt;&lt;P&gt;Record ID 1&lt;BR /&gt;Record ID 1&lt;/P&gt;&lt;P&gt;Record ID 2&lt;/P&gt;&lt;P&gt;Record ID 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot enforce a domain as the IDs can be unlimited. You can't auto-populate fields or domains. I have a relationship class defined between the feature class and table but I don't think this can do what I am describing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;So it looks like the above is not possible via normal ArcMap avenues... would this be possible using Attribute Assistant? If so, what's the rule look like? I have used a "CREATE_LINKED_RECORD" rule that should enforce a PK/FK relationship, but it doesn't seem to be doing so. This is the rule I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Name: State_MgmtTracts&lt;/P&gt;&lt;P&gt;Field Name: &amp;lt;empty&amp;gt;&lt;/P&gt;&lt;P&gt;Value Method: CREATE_LINKED_RECORD&lt;/P&gt;&lt;P&gt;Value Info: State_MgmtAttrb|ID_Number|ID_Number|ID_Number|ID_Number&lt;/P&gt;&lt;P&gt;On Create: True&lt;/P&gt;&lt;P&gt;On Change (Attribute): False&lt;/P&gt;&lt;P&gt;On Change (Geometry): False&lt;/P&gt;&lt;P&gt;Manual Only: False&lt;/P&gt;&lt;P&gt;Rule Weight: 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/enforce-pk-fk-relationship-using-attribute/m-p/478886#M27281</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2019-01-15T18:03:33Z</dc:date>
    </item>
  </channel>
</rss>

