<?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 Make Feature Layer not showing fields from joined table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590795#M73840</link>
    <description>&lt;P&gt;I referred to that in an earlier thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/qualified-field-names.htm" target="_blank"&gt;Maintain fully qualified field names (Environment setting)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm" target="_blank"&gt;Make Feature Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on supports Current Workspace in Environment setting supported&lt;/P&gt;&lt;P&gt;whereas&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/copy-features.htm" target="_blank"&gt;Copy Features (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;supports a load more Environment settings&lt;/P&gt;&lt;P&gt;Current Workspace, Scratch Workspace, Output Coordinate System, Geographic Transformations, Extent, XY Resolution, XY Tolerance, Output has M values, M Resolution, M Tolerance, Output has Z values, Default Output Z Value, Z Resolution, Z Tolerance, Qualified Field Names, Output CONFIG Keyword, Maintain Attachments, Auto Commit, Output XY Domain, Output M Domain, Output Z Domain, Preserve Global IDs&lt;/P&gt;&lt;P&gt;So you have to delete what you copied if you don't want extra featureclasses floating around&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2025 17:06:21 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-02-28T17:06:21Z</dc:date>
    <item>
      <title>arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590502#M73830</link>
      <description>&lt;P&gt;I'm trying to update fields in a feature service from a table stored in a gdb. I've done a join using arcpys AddJoin (GlobalID fields), and then want to use Make Feature Layer to filter data by features where features in field source.A don't match join.A field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I do the MakeFeature Layer step, all the join fields disappear. Why? How can I preserve the join fields, filter my data and calculate values across?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;...
# Update feature service

# Join Table2 to fs2 feature service using GlobalID field
joined_table = arcpy.management.AddJoin(fs2, "GlobalID", Table2, "GlobalID")

# Print all field names after the join
fields = arcpy.ListFields(joined_table)
print("Fields after join:")
for field in fields:
    print(field.name)

# Iterate through each field in the lookup_list
for field in lookup_list:
    source_field = lookup_dict[field]
    join_field = f"PostPlantingInspectionTracking_TargetTable.{source_field}"
    fs2_field = f"L0Post_Planting_Inspection_Tracking___TEST.{source_field}"
    
    # Create a feature layer with mismatched features
    where_clause = (
        f"({fs2_field} IS NULL AND {join_field} IS NOT NULL) OR "
        f"({fs2_field} &amp;lt;&amp;gt; {join_field})"
    )
    print(where_clause)
    mismatched_features = arcpy.management.MakeFeatureLayer(
        joined_table,
        "mismatched_features",
        where_clause=where_clause
    )
    
    # Print all field names in the feature layer
    layer_fields = arcpy.ListFields("mismatched_features")
    print("Fields of feature layer:")
    for field in layer_fields:
        print(field.name)
    
    # Update the features in the feature service with values from the join table
    with arcpy.da.UpdateCursor("mismatched_features", [fs2_field, join_field]) as cursor:
        for row in cursor:
            row[0] = row[1]
            cursor.updateRow(row)

print("Features updated successfully.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Print statements showing fields from Line 11 (after join) and again at Line 35 (after Make Feature Layer using joined data).&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Fields after join:&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.OBJECTID&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Plantation&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Forest&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Species&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.PlantingYear&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.RENDER_LABEL&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_2_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_4_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_6_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_8_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_10_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_12_weeks&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_4_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_5_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_6_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_9_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_12_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_15_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_18_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_21_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.insp_24_months&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.GlobalID&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.PlantingFinished&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Creator&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.CreationDate&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Editor&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.EditDate&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Shape__Area&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Shape__Length&lt;BR /&gt;L0Post_Planting_Inspection_Tracking___TEST.Shape&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.OBJECTID&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Plantation&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Forest&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Species&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.PlantingYear&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.RENDER_LABEL&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_2_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_4_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_6_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_8_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_10_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_12_weeks&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_4_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_5_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_6_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_9_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_12_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_15_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_18_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_21_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.insp_24_months&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.GlobalID&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.PlantingFinished&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Creator&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.CreationDate&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Editor&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.EditDate&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Shape__Area&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.Shape__Length&lt;BR /&gt;PostPlantingInspectionTracking_TargetTable.join_field&lt;/P&gt;&lt;P&gt;where_clause:&lt;/P&gt;&lt;P&gt;(L0Post_Planting_Inspection_Tracking___TEST.insp_2_weeks IS NULL AND PostPlantingInspectionTracking_TargetTable.insp_2_weeks IS NOT NULL) OR (L0Post_Planting_Inspection_Tracking___TEST.insp_2_weeks &amp;lt;&amp;gt; PostPlantingInspectionTracking_TargetTable.insp_2_weeks)&lt;/P&gt;&lt;P&gt;Fields of feature layer:&lt;BR /&gt;OBJECTID&lt;BR /&gt;Plantation&lt;BR /&gt;Forest&lt;BR /&gt;Species&lt;BR /&gt;PlantingYear&lt;BR /&gt;RENDER_LABEL&lt;BR /&gt;insp_2_weeks&lt;BR /&gt;insp_4_weeks&lt;BR /&gt;insp_6_weeks&lt;BR /&gt;insp_8_weeks&lt;BR /&gt;insp_10_weeks&lt;BR /&gt;insp_12_weeks&lt;BR /&gt;insp_4_months&lt;BR /&gt;insp_5_months&lt;BR /&gt;insp_6_months&lt;BR /&gt;insp_9_months&lt;BR /&gt;insp_12_months&lt;BR /&gt;insp_15_months&lt;BR /&gt;insp_18_months&lt;BR /&gt;insp_21_months&lt;BR /&gt;insp_24_months&lt;BR /&gt;GlobalID&lt;BR /&gt;PlantingFinished&lt;BR /&gt;Creator&lt;BR /&gt;CreationDate&lt;BR /&gt;Editor&lt;BR /&gt;EditDate&lt;BR /&gt;Shape__Area&lt;BR /&gt;Shape__Length&lt;BR /&gt;Shape&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Temp\development.py", line 238, in &amp;lt;module&amp;gt;&lt;BR /&gt;for row in cursor:&lt;BR /&gt;RuntimeError: Cannot find field 'L0Post_Planting_Inspection_Tracking___TEST.insp_2_weeks'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 04:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590502#M73830</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-02-28T04:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590523#M73831</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_blank"&gt;Add Join (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;suggests&lt;/P&gt;&lt;P&gt;To make a permanent join, either use the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.4/tool-reference/data-management/join-field.htm" target="_blank"&gt;Join Field&lt;/A&gt;&amp;nbsp;tool or use the joined layer as input to one of the following tools:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.4/tool-reference/data-management/copy-features.htm" target="_blank"&gt;Copy Features&lt;/A&gt;,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.4/tool-reference/data-management/copy-rows.htm" target="_blank"&gt;Copy Rows&lt;/A&gt;,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.4/tool-reference/conversion/export-features.htm#GUID-1A835E1D-0DC7-4768-8D19-C4A0951DF8BC" target="_blank"&gt;Export Features&lt;/A&gt;, or&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.4/tool-reference/conversion/export-table.htm#GUID-A94E6FFE-FB90-4BE4-BFE2-3D4FAC3B66FA" target="_blank"&gt;Export Table&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I assume that you don't want a permanent join&lt;/P&gt;&lt;P&gt;or for the field name thing&lt;/P&gt;&lt;P&gt;When saving the results to a new feature class or table, the Maintain fully qualified field names environment can be used to control whether the joined output field names will be qualified with the name of the table the field came from.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 05:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590523#M73831</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-28T05:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590526#M73832</link>
      <description>&lt;P&gt;Correct - I don't want a permanent join. And I thought Add Join was temporary (it appears in the list of joins which can then be removed).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 05:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590526#M73832</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-02-28T05:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590528#M73833</link>
      <description>&lt;P&gt;it is temporary, you have to use the other options to make the join permanent (Join Field is permanent by default).&lt;/P&gt;&lt;P&gt;It is the "qualified field names" thing that appears to be the issue then&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/qualified-field-names.htm" target="_blank"&gt;Maintain fully qualified field names (Environment setting)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;something that I thankfully don't have to deal with, but have a look since your last error line is indicating the bit&amp;nbsp;&lt;/P&gt;&lt;P&gt;L0Post_Planting_Inspection_Tracking___TEST.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;is missing from the preceding qualifier for&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.insp_2_weeks'&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 05:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590528#M73833</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-28T05:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590529#M73834</link>
      <description>&lt;P&gt;Thanks. Will try it out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 05:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590529#M73834</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-02-28T05:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590546#M73835</link>
      <description>&lt;P&gt;No luck with that one. Layer output from Make Feature Layer is still missing the joined fields (e.g. table2.field) and the source table fields show as the original - not as table1.field name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 06:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590546#M73835</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-02-28T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590616#M73836</link>
      <description>&lt;P&gt;Then as a test, use one of the other options to that should persist the qualified field names (eg Copy Features) to see if you can at least finish your calculations etc.&amp;nbsp; A good "Delete" might seem like an extra step at the end, but perhaps a step needed to complete the task&lt;/P&gt;&lt;P&gt;Also, a standalone script is going to behave differently than a script attached to a toolbox within ArcGIS Pro&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 12:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590616#M73836</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-28T12:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590660#M73837</link>
      <description>&lt;P&gt;Try using something like "map.AddLayer()" instead? I think AddJoin returns a layer or view object anyway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that worked, you could just add a definition query after the fact.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 14:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590660#M73837</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-02-28T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590730#M73839</link>
      <description>&lt;P&gt;&amp;nbsp;Have you looked into&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/qualified-field-names.htm" target="_self"&gt; arcpy.env.qualifiedFieldName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would se the arcpy.management.CopyFeatures tool to create a temporary feature class that includes the joined fields.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# Join Table2 to fs2 feature service using GlobalID field
joined_table = arcpy.management.AddJoin(fs2, "GlobalID", Table2, "GlobalID")

# Create a temporary feature class to preserve the joined fields
temp_feature_class = r"in_memory\temp_feature_class"
arcpy.management.CopyFeatures(joined_table, temp_feature_class)

# Print all field names after the join
fields = arcpy.ListFields(temp_feature_class)
print("Fields after join:")
for field in fields:
    print(field.name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 15:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590730#M73839</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2025-02-28T15:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590795#M73840</link>
      <description>&lt;P&gt;I referred to that in an earlier thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/qualified-field-names.htm" target="_blank"&gt;Maintain fully qualified field names (Environment setting)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm" target="_blank"&gt;Make Feature Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on supports Current Workspace in Environment setting supported&lt;/P&gt;&lt;P&gt;whereas&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/copy-features.htm" target="_blank"&gt;Copy Features (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;supports a load more Environment settings&lt;/P&gt;&lt;P&gt;Current Workspace, Scratch Workspace, Output Coordinate System, Geographic Transformations, Extent, XY Resolution, XY Tolerance, Output has M values, M Resolution, M Tolerance, Output has Z values, Default Output Z Value, Z Resolution, Z Tolerance, Qualified Field Names, Output CONFIG Keyword, Maintain Attachments, Auto Commit, Output XY Domain, Output M Domain, Output Z Domain, Preserve Global IDs&lt;/P&gt;&lt;P&gt;So you have to delete what you copied if you don't want extra featureclasses floating around&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 17:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1590795#M73840</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-28T17:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1591000#M73849</link>
      <description>&lt;P&gt;I'm a bit late, but you should be able to just Select -&amp;gt; Copy&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Create the Join    
joined_table = arcpy.management.AddJoin(fs2, "GlobalID", Table2, "GlobalID")

# Iterate through each field in the lookup_list
for field in lookup_list:
    source_field = lookup_dict[field]
    join_field = f"PostPlantingInspectionTracking_TargetTable.{source_field}"
    fs2_field = f"L0Post_Planting_Inspection_Tracking___TEST.{source_field}"
    
    # Define mismatch clause
    where_clause = (
        f"({fs2_field} IS NULL AND {join_field} IS NOT NULL) OR "
        f"({fs2_field} &amp;lt;&amp;gt; {join_field})"
    )
    
    # Select the mismatched features
    selected_layer, _ = arcpy.management.SelectLayerByAttribute(joined_table, "NEW_SELECTION", where_clause)
    
    # Copy the mismatched features to a new feature layer
    mismatched_features = arcpy.management.CopyFeatures(selected_layer, "mismatched_features")
    
    # Update the features in the feature service with values from the join table
    with arcpy.da.UpdateCursor("mismatched_features", [fs2_field, join_field]) as cursor:
        for row in cursor:
            row[0] = row[1]
            cursor.updateRow(row)
print("Features updated successfully.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be warned, this will create a new featureclass per field in your lookup list. I'd do what &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3265"&gt;@TonyAlmeida&lt;/a&gt; did and write these to an in memory featureclass, then insert the mismatched values into a more permanent 'Mismatch' featureclass that says what the mismatches are. If you're gonna do that though, you can skip the feature layer copy entirely and just iterate the selected layer with a da.SearchCursor&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 01:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1591000#M73849</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-03-01T01:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Make Feature Layer not showing fields from joined table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1591496#M73857</link>
      <description>&lt;P&gt;Could be somewhere else in the code?&amp;nbsp; Without the iterations and just using arcpy to join the tables and make a feature layer from it, it appears to be working as expected as well as maintaining the joined field FQ names.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Python 3.9.16 [MSC v.1931 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
&amp;gt;&amp;gt;&amp;gt; import arcpy


&amp;gt;&amp;gt;&amp;gt; infc = r'Database Connections\PublicWorks.sde\PublicWorks.DBO.Streets\PublicWorks.DBO.Ramps_working'
&amp;gt;&amp;gt;&amp;gt; intbl = r'Database Connections\PublicWorks.sde\PublicWorks.DBO.ADA_Table'

&amp;gt;&amp;gt;&amp;gt; veg_joined_table = arcpy.management.AddJoin(infc, 'RecField', intbl,'Recnum')

&amp;gt;&amp;gt;&amp;gt; fields = arcpy.ListFields(veg_joined_table)


&amp;gt;&amp;gt;&amp;gt; for f in fields:
	  print (f.name)

	
PublicWorks.DBO.Ramps_working.OBJECTID
PublicWorks.DBO.Ramps_working.Corner
PublicWorks.DBO.Ramps_working.recnum
PublicWorks.DBO.Ramps_working.RecField
PublicWorks.DBO.Ramps_working.Note
PublicWorks.DBO.Ramps_working.checked
PublicWorks.DBO.Ramps_working.AsBuilt1
PublicWorks.DBO.Ramps_working.Photo
PublicWorks.DBO.Ramps_working.SHAPE
PublicWorks.DBO.ADA_Table.OBJECTID
PublicWorks.DBO.ADA_Table.Recnum
PublicWorks.DBO.ADA_Table.InvDate
PublicWorks.DBO.ADA_Table.Functional_Class
PublicWorks.DBO.ADA_Table.Cencus_Tract
PublicWorks.DBO.ADA_Table.Block
PublicWorks.DBO.ADA_Table.School_Walk_Route
PublicWorks.DBO.ADA_Table.Government_Facilities
PublicWorks.DBO.ADA_Table.MEF
PublicWorks.DBO.ADA_Table.Severity



&amp;gt;&amp;gt;&amp;gt; arcpy.management.MakeFeatureLayer(veg_joined_table, 'testjoin')
&amp;lt;Result 'testjoin'&amp;gt;

&amp;gt;&amp;gt;&amp;gt; fields2 = arcpy.ListFields('testjoin')

&amp;gt;&amp;gt;&amp;gt; for f in fields2:
	  print (f.name)

	
PublicWorks.DBO.Ramps_working.OBJECTID
PublicWorks.DBO.Ramps_working.Corner
PublicWorks.DBO.Ramps_working.recnum
PublicWorks.DBO.Ramps_working.RecField
PublicWorks.DBO.Ramps_working.Note
PublicWorks.DBO.Ramps_working.checked
PublicWorks.DBO.Ramps_working.AsBuilt1
PublicWorks.DBO.Ramps_working.Photo
PublicWorks.DBO.Ramps_working.SHAPE
PublicWorks.DBO.ADA_Table.OBJECTID
PublicWorks.DBO.ADA_Table.Recnum
PublicWorks.DBO.ADA_Table.InvDate
PublicWorks.DBO.ADA_Table.Functional_Class
PublicWorks.DBO.ADA_Table.Cencus_Tract
PublicWorks.DBO.ADA_Table.Block
PublicWorks.DBO.ADA_Table.School_Walk_Route
PublicWorks.DBO.ADA_Table.Government_Facilities
PublicWorks.DBO.ADA_Table.MEF
PublicWorks.DBO.ADA_Table.Severity

&amp;gt;&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 00:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-make-feature-layer-not-showing-fields-from/m-p/1591496#M73857</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-03-04T00:14:12Z</dc:date>
    </item>
  </channel>
</rss>

