<?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: Caching Error with Parcel Fabric Active Record Automation in ArcGIS Parcel Fabric Questions</title>
    <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621556#M1973</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618081"&gt;@Jessica_Watson&lt;/a&gt;&amp;nbsp;That makes sense.&lt;/P&gt;&lt;P&gt;We will look into it&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 16:09:55 GMT</pubDate>
    <dc:creator>AmirBar-Maor</dc:creator>
    <dc:date>2025-06-06T16:09:55Z</dc:date>
    <item>
      <title>Caching Error with Parcel Fabric Active Record Automation</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621439#M1972</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using parts of this script at this link&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-parcel-fabric-blog/parcel-fabric-active-record-automation/ba-p/1374008" target="_blank"&gt;Parcel Fabric Active Record Automation - Esri Community&lt;/A&gt; suggested by &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108851"&gt;@KenGalliher1&lt;/a&gt;&amp;nbsp;. I've pasted an extract of my script below. The code works when there is an active record set in the map like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jessica_Watson_0-1749190774837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133906iF0694C4F7915944A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jessica_Watson_0-1749190774837.png" alt="Jessica_Watson_0-1749190774837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and returns the id as expected, however once I turn off the active record like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jessica_Watson_1-1749190815334.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133907i48D128FF825F60F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jessica_Watson_1-1749190815334.png" alt="Jessica_Watson_1-1749190815334.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the toggle and re run this code, the same record_id for the 'TEST' record is still returned. I only want the record_id returned when in fact there is an active record. It appears that the cim properties are somehow being cached.&lt;/P&gt;&lt;P&gt;Is there a better way to check for an active record or is this a bug with the cim properties? And help would be much appreciated. Thank you&lt;/P&gt;&lt;LI-CODE lang="c"&gt;current_project = arcpy.mp.ArcGISProject('current')
# Get the active map
target_map = current_project.activeMap

map_layers = target_map.listLayers()
parcel_layer = [lyr for lyr in map_layers if lyr.isParcelFabricLayer][0]

# get parcel fabric cim properties to return active record
parcel_cim_def = parcel_layer.getDefinition("v3")
cim_properties = [v for v in dir(parcel_cim_def.parcelFabricActiveRecord) if not v.startswith("_")]
active_record = parcel_cim_def.parcelFabricActiveRecord.activeRecord
record_id = str.upper(active_record)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 06:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621439#M1972</guid>
      <dc:creator>Jessica_Watson</dc:creator>
      <dc:date>2025-06-06T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Caching Error with Parcel Fabric Active Record Automation</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621556#M1973</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618081"&gt;@Jessica_Watson&lt;/a&gt;&amp;nbsp;That makes sense.&lt;/P&gt;&lt;P&gt;We will look into it&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 16:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621556#M1973</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2025-06-06T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Caching Error with Parcel Fabric Active Record Automation</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621607#M1974</link>
      <description>&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;Chris here with the parcel team. Thanks for your question.&lt;/P&gt;&lt;P&gt;You're right, it might make more sense if the ActiveRecord CIM properties returned a NULL object if there is no active record in the map. We will do some internal review on this.&lt;/P&gt;&lt;P&gt;But there is a pretty straight forward way to return a record GUID if the record is actually active.&lt;/P&gt;&lt;P&gt;There is a boolean property called &lt;FONT face="courier new,courier"&gt;enabled&lt;/FONT&gt; that will be &lt;FONT face="courier new,courier"&gt;True&lt;/FONT&gt; if the record is active and &lt;FONT face="courier new,courier"&gt;False&lt;/FONT&gt; if it is not.&lt;/P&gt;&lt;P&gt;You can make use of this property to return the GUID, only if the record is active, like so:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;current_project = arcpy.mp.ArcGISProject('current')
# Get the active map
target_map = current_project.activeMap

map_layers = target_map.listLayers()
parcel_layer = [lyr for lyr in map_layers if lyr.isParcelFabricLayer][0]

# get parcel fabric cim properties to return active record
parcel_cim_def = parcel_layer.getDefinition("v3")
cim_properties = [v for v in dir(parcel_cim_def.parcelFabricActiveRecord) if not v.startswith("_")]
active_record = parcel_cim_def.parcelFabricActiveRecord.activeRecord
record_id = str.upper(active_record)

# added logic to only return a record GUID if record is enabled (active)
if parcel_cim_def.parcelFabricActiveRecord.enabled:
    print("Record is active in current map. The GUID is: ", record_id)
else:
    print("There is no active record") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also made a quick video showing the behavior.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 18:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621607#M1974</guid>
      <dc:creator>Chris-Zemp</dc:creator>
      <dc:date>2025-06-06T18:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Caching Error with Parcel Fabric Active Record Automation</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621767#M1975</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702755"&gt;@Chris-Zemp&lt;/a&gt;&amp;nbsp;, this worked.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 05:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/caching-error-with-parcel-fabric-active-record/m-p/1621767#M1975</guid>
      <dc:creator>Jessica_Watson</dc:creator>
      <dc:date>2025-06-09T05:19:13Z</dc:date>
    </item>
  </channel>
</rss>

