<?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 Turn Off Fields with Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403316#M31754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, this is not a duplicate thread as I am not convinced that the one below has been resolved..at least the suggestions and code does not seem to work for me.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/85543"&gt;Turning fields on and off using arcpy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another on stackexchange on this topic addresses this in ArcMap, but since ESRI decided to get rid of the mapping module and create the mp module for Pro, it doesn't solve the problem either.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/230017/using-fieldinfo-setvisible-in-arcpy"&gt;https://gis.stackexchange.com/questions/230017/using-fieldinfo-setvisible-in-arcpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a Pro project that houses our web maps for our organization. Recently we turned on editor tracking fields for layers coming from a specific sde, and now we need to hide those fields so they don't display in the web map pop-ups. To get an idea of the scale of this task, there are over a thousand layers that need these fields turned off. I have been scripting in Python for ArcMap for several years, but am relatively new to Pro and Python 3 and the new arcpy.mp module. The example code in the above threads uses arcpy.mapping and looks fairly straightforward - the arcpy.mapping.UpdateLayer() function does the hard work. Well this does not exist in arcpy.mp and the workaround I have seen (and suggested by esristaff) goes like this:&lt;/P&gt;&lt;P&gt;- create a fieldinfo describe object on the layer of interest&lt;/P&gt;&lt;P&gt;- loop through fieldinfo list and using setVisible hide desired fields&lt;/P&gt;&lt;P&gt;- make feature layer and pass in fieldinfo&lt;/P&gt;&lt;P&gt;- save as layer file&lt;/P&gt;&lt;P&gt;- replace old layer in map with new layer (plus a bunch of steps to preserve order and symbology)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all straightforward to me and I am not having issues structuring the code. The issue is that the temp layer created from MakeFeatureLayer is not honoring the new field info. I have tested this interactively in the Python window in Pro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldInfo = arcpy.Describe(lyr).fieldInfo&lt;/P&gt;&lt;P&gt;Printing this shows the fields I need to turn off as visible. Then looping through and turning them off:&lt;/P&gt;&lt;P&gt;for i in range(0, field_info.count):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if field_info.getFieldName(i) in fields_to_turn_off:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; field_info.setVisible(i, "HIDDEN")&lt;/P&gt;&lt;P&gt;Printing field_info now shows the fields I wanted off to be hidden. Great. But then I make a feature layer passing this field_info into it, it shows up in my TOC, I open the fields window on it and all the fields are still on!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example code from the previous threads stops there, but to me it seems like either the field_info object is not being 'saved' or the MakeFeatureLayer function is not honoring it as a parameter. ESRI's documentation on fieldInfo and everything else is minimal at best, and I have not come up with anything else helpful on Google.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an overly complicated workaround I have gotten to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Save layer of interest as a layer file&lt;/P&gt;&lt;P&gt;- Then on that layer file create the describe object and turn fields off&lt;/P&gt;&lt;P&gt;- Then make feature layer passing in the new field info&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Then save as another layer file&lt;/P&gt;&lt;P&gt;Kind of ridiculous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2019 16:57:27 GMT</pubDate>
    <dc:creator>DylanHarwell</dc:creator>
    <dc:date>2019-04-02T16:57:27Z</dc:date>
    <item>
      <title>Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403316#M31754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, this is not a duplicate thread as I am not convinced that the one below has been resolved..at least the suggestions and code does not seem to work for me.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/85543"&gt;Turning fields on and off using arcpy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another on stackexchange on this topic addresses this in ArcMap, but since ESRI decided to get rid of the mapping module and create the mp module for Pro, it doesn't solve the problem either.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/230017/using-fieldinfo-setvisible-in-arcpy"&gt;https://gis.stackexchange.com/questions/230017/using-fieldinfo-setvisible-in-arcpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a Pro project that houses our web maps for our organization. Recently we turned on editor tracking fields for layers coming from a specific sde, and now we need to hide those fields so they don't display in the web map pop-ups. To get an idea of the scale of this task, there are over a thousand layers that need these fields turned off. I have been scripting in Python for ArcMap for several years, but am relatively new to Pro and Python 3 and the new arcpy.mp module. The example code in the above threads uses arcpy.mapping and looks fairly straightforward - the arcpy.mapping.UpdateLayer() function does the hard work. Well this does not exist in arcpy.mp and the workaround I have seen (and suggested by esristaff) goes like this:&lt;/P&gt;&lt;P&gt;- create a fieldinfo describe object on the layer of interest&lt;/P&gt;&lt;P&gt;- loop through fieldinfo list and using setVisible hide desired fields&lt;/P&gt;&lt;P&gt;- make feature layer and pass in fieldinfo&lt;/P&gt;&lt;P&gt;- save as layer file&lt;/P&gt;&lt;P&gt;- replace old layer in map with new layer (plus a bunch of steps to preserve order and symbology)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all straightforward to me and I am not having issues structuring the code. The issue is that the temp layer created from MakeFeatureLayer is not honoring the new field info. I have tested this interactively in the Python window in Pro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldInfo = arcpy.Describe(lyr).fieldInfo&lt;/P&gt;&lt;P&gt;Printing this shows the fields I need to turn off as visible. Then looping through and turning them off:&lt;/P&gt;&lt;P&gt;for i in range(0, field_info.count):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if field_info.getFieldName(i) in fields_to_turn_off:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; field_info.setVisible(i, "HIDDEN")&lt;/P&gt;&lt;P&gt;Printing field_info now shows the fields I wanted off to be hidden. Great. But then I make a feature layer passing this field_info into it, it shows up in my TOC, I open the fields window on it and all the fields are still on!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example code from the previous threads stops there, but to me it seems like either the field_info object is not being 'saved' or the MakeFeatureLayer function is not honoring it as a parameter. ESRI's documentation on fieldInfo and everything else is minimal at best, and I have not come up with anything else helpful on Google.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an overly complicated workaround I have gotten to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Save layer of interest as a layer file&lt;/P&gt;&lt;P&gt;- Then on that layer file create the describe object and turn fields off&lt;/P&gt;&lt;P&gt;- Then make feature layer passing in the new field info&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Then save as another layer file&lt;/P&gt;&lt;P&gt;Kind of ridiculous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 16:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403316#M31754</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-02T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403317#M31755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; "&gt;Kind of ridiculous.&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yep.&amp;nbsp; Couldn't agree more.&amp;nbsp; I've never been able to to use arcpy to turn off a field.....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 18:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403317#M31755</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-04-03T18:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403318#M31756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just used your sample script and was able to hide fields in the feature layer using the updated field info.&amp;nbsp; What version of Pro are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 19:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403318#M31756</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-04-03T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403319#M31757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2.3.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 19:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403319#M31757</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-03T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403320#M31758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was working in Pro 2.3.1, and upgraded to Pro 2.3.2.&amp;nbsp; I was still able to hide fields successfully with the feature layer.&amp;nbsp; You mentioned that you were using data coming from an sde database.&amp;nbsp; Can you export a feature class, and or try on a feature class coming from a file geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403320#M31758</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-04-03T20:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403321#M31759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting idea.. since the workaround I mentioned I first saved a layer file, then turned fields off, then made feature layer and saved a new layer file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess what! Fields were off after doing it on the File GDB version of the data. To ensure I was not going crazy, I did the same thing on another layer in the project coming from SDE and sure enough, the output feature layer still had those fields turned on. Attached is the code I used in the Pro Python window.&lt;IMG __jive_id="441137" alt="testing turning off fields on file gdb data versus sde data" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/441137_code.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403321#M31759</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-03T20:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403322#M31760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear that it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403322#M31760</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-04-03T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403323#M31761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still does not solve the problem though.. As I stated we have over a thousand layers (all in SDE) that needs these fields turned off. It's completely impractical to have to export each one to a file geodatabase, then do all these steps to turn off the fields (which is already impractical as is) then export them all back into SDE - which I think would require a delete/append as removing and adding feature classes breaks our replication setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact that it only works on file gdbs, is that not a bug or at least a flaw/limitation that should be looked into by ESRI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403323#M31761</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-03T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403324#M31762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, I thought you said that other SDE feature layers had those fields turned off.&amp;nbsp; I misunderstood.&amp;nbsp; I attempted this workflow with my own SDE database and cannot reproduce your issue.&amp;nbsp; I recommend that you contact Esri Technical Support for a more in depth investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/contact-tech-support"&gt;https://support.esri.com/en/contact-tech-support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 22:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403324#M31762</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-04-03T22:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403325#M31763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.. wonder if it has something to do with the feature classes coming from our downstream replica database? The way our organization is set up, we have a parent SDE database and a replica of that which all our webmaps point to. I imagine when you tested this you were working in a single sde and not a replica gdb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested this using the same workflow on the same building footprints layer, 1 coming from the replica and 2 coming from the parent database, and guess what? Fields are off on the parent sde feature class and not on the replica! Can you try and reproduce this on a replica database please? Is there some reason this should be designed to not work on the replica?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same workflow as before: create a field info describe object on the layer, loop through setting the desired fields to hidden, then make a feature layer passing in the new field info.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/441212_SDE_replica_code.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/441214_test1_fields.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/441215_test2_fields.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 16:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403325#M31763</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-04T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403326#M31764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;After lots and lots of testing, I imagine this is a bug and will be opening a case with tech support. If this was built into the design of arcpy, there is no reason I can think of that the FieldInfo properties should not be honored on data coming from a replica database since they are properties of the layer in the map/project and not properties of the data in the database.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I did, however, manage to figure out a workaround, cobbled together with someone else's workaround for preserving the symbology, and my own hack of the JSON code in the lyrx file to preserve other properties of our maps. The solution is rather ridiculous and overly complex for what should be such a simple task of turning off fields. I hope&amp;nbsp;ESRI and the Python community can see the humor in this code&lt;SPAN&gt;&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="background: url(&amp;quot; border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Import modules and set workspace&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; json&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os
workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\...\\WebLayers_COPY"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; workspace
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Set up folder paths and fields to turn off&lt;/SPAN&gt;
layer_folder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\...\\TempLayers"&lt;/SPAN&gt;
proj_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\...\\webLayersArcGISAPP_COPY2.aprx"&lt;/SPAN&gt;
fields_to_turn_off &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'created_user'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'created_date'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
                      &lt;SPAN class="string token"&gt;'last_edited_user'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'last_edited_date'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Create project object&lt;/SPAN&gt;
project &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;proj_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# List maps in project and layers in maps&lt;/SPAN&gt;
maps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; project&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Initiate loop through maps and layers&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; map &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; maps&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    layers &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; layers&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        
        &lt;SPAN class="comment token"&gt;# Pass over group layers&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isGroupLayer&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;# Pass over any data not coming from gjgisprod.sde&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'gjgisprod'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSource&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;# Pass over any data using Parcels&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Parcel'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSource&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;# Begin absurd process&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;# Get field info, loop through and turn off desired fields&lt;/SPAN&gt;
            field_info &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fieldInfo
            &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;count&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; field_info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getFieldName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fields_to_turn_off&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                    field_info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setVisible&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"HIDDEN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
            &lt;SPAN class="comment token"&gt;# Make feature layer, save to lyr file, make feature layer with new&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;# field info, apply symbology, save to lyr file again&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;# --dumb workaround: fieldinfo not honored on replica data &lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;# --must make feature layer and save as lyr twice for it to work&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;# --dumb symbology/naming workarounds&lt;/SPAN&gt;
            name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name        
            out_lyr_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer_folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_1.lyrx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"temp_lyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_info&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SaveToLayerFile_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp_lyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_lyr_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"temp_lyr2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                              &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_info&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ApplySymbologyFromLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp_lyr2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MAINTAIN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            new_lyr_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer_folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".lyrx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SaveToLayerFile_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp_lyr2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; new_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
            
            new_lyr_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LayerFile&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;        
            new_lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; new_lyr_file&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;        
            new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateConnectionProperties&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;connectionProperties&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
                                               lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;connectionProperties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
            &lt;SPAN class="comment token"&gt;# Check leyer properties and preserve&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;transparency&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;transparency &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;transparency
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;minThreshold&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;minThreshold &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;minThreshold
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maxThreshold&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maxThreshold &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maxThreshold
    
            new_lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; name
            new_lyr_file&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        
            &lt;SPAN class="comment token"&gt;# Hack into lyrx JSON code and collapse layer and disable popups&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; json_lyr&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; json&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;load&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json_lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                data&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'layerDefinitions'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'expanded'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
                data&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'layerDefinitions'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'showPopups'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_lyr_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"w"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; json_lyr&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                json&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dump&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;data&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; json_lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; indent&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

            &lt;SPAN class="comment token"&gt;# Must delete lyr and create another for the JSON changes&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; new_lyr_file
            new_new_lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LayerFile&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_lyr_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

            &lt;SPAN class="comment token"&gt;# Finally, switch out layers in map&lt;/SPAN&gt;
            map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertLayer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; new_new_lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AFTER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;removeLayer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Save project and clean up (still does not remove locks for some reason..) &lt;/SPAN&gt;
project&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; project
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; workspace‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403326#M31764</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2021-12-11T18:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403327#M31765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone not amused by your comment lines lives an a bubble...&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 20:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/403327#M31765</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-04-12T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/1292886#M67726</link>
      <description>&lt;P&gt;Thank you so much Dylan! I'm dealing with dozens of layers and Cityworks configuration. You've saved me and I'm sure many others from existential panic!&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 01:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/1292886#M67726</guid>
      <dc:creator>Oliver_Sandoval_e</dc:creator>
      <dc:date>2023-05-25T01:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Off Fields with Python</title>
      <link>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/1639449#M74577</link>
      <description>&lt;P&gt;This was so helpful, thank you for sharing it &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/144469"&gt;@DylanHarwell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 22:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/turn-off-fields-with-python/m-p/1639449#M74577</guid>
      <dc:creator>HBrowning</dc:creator>
      <dc:date>2025-08-05T22:10:46Z</dc:date>
    </item>
  </channel>
</rss>

