<?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: Added Table to Feature Service - But It Doesn't Display in Overview in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695579#M68385</link>
    <description>&lt;P&gt;I remember experiencing a similar issue in the past, and I had to modify the script to use "add_to_definition" as well as "item.update" to get things to show in both the REST service as well as the item details page.&lt;BR /&gt;&lt;BR /&gt;Maybe try adding something like this after using "add_to_definition"?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item.update(data={
    "layers": [dict(layer.properties) for layer in flc.layers],
    "tables": [dict(table.properties) for table in flc.tables]
})&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2026 15:52:40 GMT</pubDate>
    <dc:creator>Katie_Clark</dc:creator>
    <dc:date>2026-04-10T15:52:40Z</dc:date>
    <item>
      <title>Added Table to Feature Service - But It Doesn't Display in Overview</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695558#M68381</link>
      <description>&lt;P&gt;I used the ArcGIS API for Python (code below) to add a table to a hosted feature service, as well as adding a relationship between the new table and an existing feature layer in the service. The new table is visible in the REST page for the Feature Service, but I neither see it in the item description page (Overview or Data tabs) nor can I add it to a map by constructed URL. Was there a step or parameter I missed in uploading it with Python?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;bf_table = r"Path/BrownfieldsInventory"

fields_def = []

for f in arcpy.ListFields(bf_table):
    field_dict = {}
    field_dict['name'] = f.name
    field_dict['type'] = "esriFieldType" + f.type
    field_dict['alias'] = f.aliasName
    field_dict['length'] = f.length
    field_dict['nullable'] = f.isNullable
    field_dict['editable'] = f.editable
    fields_def.append(field_dict)

tbl_definition = {
    "id": 12,
    "type" : "Table",
    "name" : "Brownfields",
    "description": "Description",
    "fields": fields_def,
    "indexes": [
    {
      "name": "PK_IDX",
      "fields": "OBJECTID",
      "isAscending": True,
      "isUnique": True,
      "description": "clustered, unique, primary key"
    }
    ],
    "objectIdField": "OBJECTID",
    "uniqueIdField": {
        "name": "OBJECTID",
        "isSystemMaintained": True
    }
}

item = gis.content.get("existingFeatureServiceID")

flc = FeatureLayerCollection.fromitem(item=item)

status = flc.manager.add_to_definition(json_dict={"tables": [tbl_definition]})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695558#M68381</guid>
      <dc:creator>RobertMatthewmanCTCLUSI</dc:creator>
      <dc:date>2026-04-10T15:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Added Table to Feature Service - But It Doesn't Display in Overview</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695573#M68383</link>
      <description>&lt;P&gt;In case of it's of interest, here is the code I used to add a relationship:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;holdings_to_brownfields = [
    {
        "id": 8, 
        "name": "Brownfields",
        "relatedTableId": 12,
        "cardinality": "esriRelCardinalityOneToMany",
        "role": "esriRelRoleOrigin",
        "keyField": "TTN",
        "composite": False
    }]

brownfields_to_holdings = [
    {
        "id": 8, 
        "name": "Holdings",
        "relatedTableId": 1,
        "cardinality": "esriRelCardinalityOneToMany",
        "role": "esriRelRoleDestination",
        "keyField": "TTN",
        "composite": False
    }
]

relationship_lyrs = {
   "Holdings" : holdings_to_brownfields,
}

relationship_tbls = {
   "Brownfields" : brownfields_to_holdings
}

for fl_name, relationship_def in relationship_lyrs.items():
   print(fl_name)
   fl = [fl for fl in item.layers if fl.properties.name == fl_name][0]
   status = fl.manager.add_to_definition({"relationships" : relationship_def})
   print(status)

for tbl_name, relationship_def in relationship_tbls.items():
   print(tbl_name)
   tbl = [tbl for tbl in item.tables if tbl.properties.name == tbl_name][0]
   status = tbl.manager.add_to_definition({"relationships" : relationship_def})
   print(status)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695573#M68383</guid>
      <dc:creator>RobertMatthewmanCTCLUSI</dc:creator>
      <dc:date>2026-04-10T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Added Table to Feature Service - But It Doesn't Display in Overview</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695579#M68385</link>
      <description>&lt;P&gt;I remember experiencing a similar issue in the past, and I had to modify the script to use "add_to_definition" as well as "item.update" to get things to show in both the REST service as well as the item details page.&lt;BR /&gt;&lt;BR /&gt;Maybe try adding something like this after using "add_to_definition"?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item.update(data={
    "layers": [dict(layer.properties) for layer in flc.layers],
    "tables": [dict(table.properties) for table in flc.tables]
})&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1695579#M68385</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2026-04-10T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Added Table to Feature Service - But It Doesn't Display in Overview</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1696871#M68437</link>
      <description>&lt;P&gt;This did the trick, thank you so much! Sort of interesting that the item object has to be updated separately after an operation on the service definition like adding tables, I'm trying to think of a scenario where it would ever be desirable to add to the definition but not update the item as well?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 03:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/added-table-to-feature-service-but-it-doesn-t/m-p/1696871#M68437</guid>
      <dc:creator>RobertMatthewmanCTCLUSI</dc:creator>
      <dc:date>2026-04-17T03:21:29Z</dc:date>
    </item>
  </channel>
</rss>

