<?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: Python is no longer seeing hosted feature layers from server. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232275#M66076</link>
    <description>&lt;P&gt;Try using just the server path to the folder?&amp;nbsp; \\servername\fldr\fldr\fldr\etc...&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 16:55:02 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-11-16T16:55:02Z</dc:date>
    <item>
      <title>Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232198#M66069</link>
      <description>&lt;P&gt;I've encountered a problem with some scripts that used to work but are now no longer functioning. I was using arcpy to update the fields to a hosted feature layer stored on the server my company uses for gis. All of a sudden, today when I go to run the script it gives a runtime error and says that it cannot open the layer I'm updating. To try and troubleshoot what happened, I decided to print the list of feature classes in storage location but the list returned says "None". I then tried running another script that is utilizing a different hosted feature layer but that script failed in the same way. Is this a problem with my computer or the server? Like I said, all these scripts were working yesterday and I came in this morning and they're acting broken.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

#access the DMA layer
arcpy.env.workspace = &amp;lt;server URL&amp;gt;
arcpy.env.overwriteOutput = True

#this is how I found the name of the feature class as it was stored online
tables = arcpy.ListFeatureClasses()

print(tables)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that is giving me trouble.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232198#M66069</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232211#M66072</link>
      <description>&lt;P&gt;Were there any recent windows updates that got installed?&amp;nbsp; Are you using the full server http url, or pointing to it as a directory path?&lt;/P&gt;&lt;P&gt;Just a tip, if you are working with servers and hosted data, using the arcgis for python api may be more suitable for your operations.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232211#M66072</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-16T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232236#M66074</link>
      <description>&lt;P&gt;The last windows update installed was a few days ago and the script was still working then. I have been using the full server http url. I'll have to look into the arcgis for python api. I'm pretty new to arcgis in general so there are still things I'm learning.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 16:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232236#M66074</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232275#M66076</link>
      <description>&lt;P&gt;Try using just the server path to the folder?&amp;nbsp; \\servername\fldr\fldr\fldr\etc...&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 16:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232275#M66076</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-16T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232289#M66078</link>
      <description>&lt;P&gt;The way URL's are listed in the items details page changed a version or two ago.&lt;/P&gt;&lt;P&gt;Is the URL you are using similar to &lt;A href="http://services#.arcgis.com" target="_blank"&gt;https://services#.arcgis.com&lt;/A&gt;&amp;nbsp;OR &lt;A href="https://yourorg.maps.arcgis.com" target="_blank"&gt;https://yourorg.maps.arcgis.com&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;If it is the "yourorg" format and not the services path, it will return None, but using the actuall services path ( in my case&amp;nbsp;&lt;A href="https://services3.arcgis.com/5g...b/arcgis/rest/services/FeatureClassName/FeatureServer" target="_blank"&gt;https://services3.arcgis.com/5g...b/arcgis/rest/services/FeatureClassName/FeatureServer&lt;/A&gt;) the code you posted is working fine.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 17:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232289#M66078</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-11-16T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232344#M66080</link>
      <description>&lt;P&gt;It's more similar to the version you said was working for you. My company is using enterprise for our gis. Would that change anything?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232344#M66080</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T18:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232345#M66081</link>
      <description>&lt;P&gt;Do you know where I could find that path? It's not entirely obvious from the item details on enterprise where I would get it.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232345#M66081</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232361#M66082</link>
      <description>&lt;P&gt;Often, you can get it from the items details page (the copy icon, not the View link):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1668624539589.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/56130iC872E0CAD3A7C1B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1668624539589.png" alt="RhettZufelt_0-1668624539589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure about Enterprise, no way for me to test that.&amp;nbsp; However, if it is issues with tokens, &lt;A href="https://community.esri.com/t5/arcgis-online-questions/token-required-when-going-to-hosted-layer-service/m-p/1228485#M48716" target="_self"&gt;this post&lt;/A&gt; may help.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232361#M66082</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-11-16T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232407#M66083</link>
      <description>&lt;P&gt;Without using python, are you able to add the feature services to ArcGIS Pro using the Add Data button in the application? We began having problems last week and are unable to add feature services from ArcGIS online. I just wonder if these issues are related?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232407#M66083</guid>
      <dc:creator>MichaelMixon</dc:creator>
      <dc:date>2022-11-16T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232439#M66084</link>
      <description>&lt;P&gt;This question led me to check pro and it turns out I was signed out of my account. When I signed back in my code started working again so I would just like to acknowledge the contribution here. I don't know if these are related issues but sometimes it's the simple things.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232439#M66084</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232441#M66085</link>
      <description>&lt;P&gt;Turns out I got signed out of my enterprise account on pro and for some reason that made it where the script couldn't access the server. I'd like to thank everyone for their contribution to this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232441#M66085</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2022-11-16T20:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232541#M66086</link>
      <description>&lt;P&gt;I believe you have 14 days since you last logged into Pro for the arcpy 3 stuff to work.&amp;nbsp; If longer than that, you will need to log in again.&lt;/P&gt;&lt;P&gt;I have scheduled tasks that require Pro python.&amp;nbsp; I now have a script that opens Pro every 10 days, then closes it otherwise the script can't authenticate after a couple weeks.&lt;/P&gt;&lt;P&gt;That way, my "credentials" stay up to date for the scripts.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 00:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232541#M66086</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-11-17T00:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python is no longer seeing hosted feature layers from server.</title>
      <link>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232686#M66099</link>
      <description>&lt;P&gt;That is how they get ya...&amp;nbsp; Glad you figured it out and I'd suggest you implement some logging for your scripts, if there isn't any already.&amp;nbsp; It might have been in the error message that your arcpy isn't licensed.&lt;/P&gt;&lt;P&gt;You can also get a named user license (if your org allows it) for these types of accounts so they never expire...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 13:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-is-no-longer-seeing-hosted-feature-layers/m-p/1232686#M66099</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-17T13:54:06Z</dc:date>
    </item>
  </channel>
</rss>

