<?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: Check for broken urls in feature layer table in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182291#M46414</link>
    <description>&lt;P&gt;You could probably do this with the Python API, combined with the&amp;nbsp;&lt;STRONG&gt;requests&lt;/STRONG&gt; module.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
import requests

# connect to portal
gis = GIS('url', 'user', 'password')

# get feature layer
fl = gis.content.get('itemID').layers[0]

# query out to dataframe
df = fl.query(out_fields=['url_field'], as_df=True)

# pull out url field as list
urls = df['url_field'].to_list()

# check each URL in list, print invalid URLs
for u in urls:
    response = requests.get(u)
    
    if response.status_code == 404:
        print(f'{u} not a valid URL')&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 13 Jun 2022 13:24:28 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-06-13T13:24:28Z</dc:date>
    <item>
      <title>Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182280#M46413</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;I have an AGOL hosted feature layer with about 50 features. Each feature has at least one URL to link to external websites for more information. Is there a tool within AGOL or ArcGIS Pro that will test each URL to make sure they're valid?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 12:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182280#M46413</guid>
      <dc:creator>KateRose</dc:creator>
      <dc:date>2022-06-13T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182291#M46414</link>
      <description>&lt;P&gt;You could probably do this with the Python API, combined with the&amp;nbsp;&lt;STRONG&gt;requests&lt;/STRONG&gt; module.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
import requests

# connect to portal
gis = GIS('url', 'user', 'password')

# get feature layer
fl = gis.content.get('itemID').layers[0]

# query out to dataframe
df = fl.query(out_fields=['url_field'], as_df=True)

# pull out url field as list
urls = df['url_field'].to_list()

# check each URL in list, print invalid URLs
for u in urls:
    response = requests.get(u)
    
    if response.status_code == 404:
        print(f'{u} not a valid URL')&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Jun 2022 13:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182291#M46414</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-06-13T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182398#M46419</link>
      <description>&lt;P&gt;I'm not aware of a tool in ArcGIS Online or Pro, however, we have a lot of users with this same need in our organization. Enough that we built and shared an ArcGIS Online Notebook that tests URLs in an attribute field in a feature service (hosted feature layer) the user specifies; much like the solution&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;suggested.&lt;/P&gt;&lt;P&gt;Feel free to give it a try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/notebook/notebook.html?id=6523e9fa5d3f483e85ccffedfdc239fa#" target="_self"&gt;Check Attribute URLs&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 17:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182398#M46419</guid>
      <dc:creator>PeterKnoop</dc:creator>
      <dc:date>2022-06-13T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182894#M46447</link>
      <description>&lt;P&gt;Thanks! I ended up using Peter Knoop's solution below but yours pretty much uses the same steps. I'm a coding novice and his notebook seemed easier for me to follow, but may try this as well to see which fits better in my workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182894#M46447</guid>
      <dc:creator>KateRose</dc:creator>
      <dc:date>2022-06-14T20:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182899#M46448</link>
      <description>&lt;P&gt;Thanks, Peter! this was super easy to follow for a coding novice like myself and it worked perfectly. One exception: I got an error when trying to run the %%time magic command, so I edited it to %time and it worked that way.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1182899#M46448</guid>
      <dc:creator>KateRose</dc:creator>
      <dc:date>2022-06-14T20:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check for broken urls in feature layer table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1696221#M68413</link>
      <description>&lt;P&gt;Hi, I'm not really good at coding but I have a few hosted feature layers with multiple url fields that are not shared publically.&amp;nbsp; When I test this code, it failed after I connected to the Server.&amp;nbsp; I do not have a specific number after my hosted feature layer url.&amp;nbsp; I tried to add the item ID # to the end and it didn't work, then&amp;nbsp; so I tried to connect the Service as a feature layer collection, but I'm not sure if the coding was wrong or if I'm missing something.&amp;nbsp; I'm very lost at this point and could use some help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 18:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/check-for-broken-urls-in-feature-layer-table/m-p/1696221#M68413</guid>
      <dc:creator>CaseyCigic</dc:creator>
      <dc:date>2026-04-14T18:39:27Z</dc:date>
    </item>
  </channel>
</rss>

