<?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: Shape field for layer returns as VISIBLE in arcpy even if hidden. Confirmed bug for a long time, but not fixed in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/shape-field-for-layer-returns-as-visible-in-arcpy/m-p/1154054#M64064</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://support.esri.com/en/bugs/nimbus/TklNMTAxNDA4" target="_blank"&gt;NIM101408: The fieldinfo.getvisible method always returns Visib.. (esri.com)&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Will Not Be Addressed &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Additional Information&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I would contact tech support and see if they can provide an answer as to why this is not possible&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 21:10:05 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-03-15T21:10:05Z</dc:date>
    <item>
      <title>Shape field for layer returns as VISIBLE in arcpy even if hidden. Confirmed bug for a long time, but not fixed</title>
      <link>https://community.esri.com/t5/python-questions/shape-field-for-layer-returns-as-visible-in-arcpy/m-p/1154029#M64062</link>
      <description>&lt;P&gt;This is a duplicate of this issue posted in 2017:&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/fieldinfo-getvisible-method-returns-quot-visible/td-p/192738" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/python-questions/fieldinfo-getvisible-method-returns-quot-visible/td-p/192738&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Bug report here:&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/TklNMTAxNDA4" target="_blank" rel="noopener"&gt;https://support.esri.com/en/bugs/nimbus/TklNMTAxNDA4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I need to publish a webmap to Online from Pro with hundreds of layers. In Pro, I need to turn the "Shape" field visible, since I can't publish as a Webmap unless the Shape fields are &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/analyzer-error-messages/00123-shape-field-is-not-visible.htm" target="_self"&gt;visible&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I tried to use arcpy to turn the "Shape" fields visibility to "VISIBLE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for m in aprx.listMaps():
     for lyr in m.listLayers():
          if not lyr.isGroupLayer:
               desc = arcpy.Describe(lyr)
               for i in range(0,desc.fieldInfo.count):
                    if desc.fieldInfo.getFieldName(i) == "Shape":
                         print(desc.fieldInfo.getVisible(i))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This returns VISIBLE for all "Shape" fields in all layers, even if they're not in Fields view.&lt;/P&gt;&lt;P&gt;Any way to avoid going through each layer and updating visibility by hand?&lt;/P&gt;&lt;P&gt;The bug report indicates that it was updated last week, but it doesn't seem like there's any plan to fix this.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 21:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shape-field-for-layer-returns-as-visible-in-arcpy/m-p/1154029#M64062</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2022-03-15T21:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shape field for layer returns as VISIBLE in arcpy even if hidden. Confirmed bug for a long time, but not fixed</title>
      <link>https://community.esri.com/t5/python-questions/shape-field-for-layer-returns-as-visible-in-arcpy/m-p/1154054#M64064</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://support.esri.com/en/bugs/nimbus/TklNMTAxNDA4" target="_blank"&gt;NIM101408: The fieldinfo.getvisible method always returns Visib.. (esri.com)&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Will Not Be Addressed &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Additional Information&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I would contact tech support and see if they can provide an answer as to why this is not possible&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 21:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/shape-field-for-layer-returns-as-visible-in-arcpy/m-p/1154054#M64064</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-15T21:10:05Z</dc:date>
    </item>
  </channel>
</rss>

