<?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: Feature layer added to Feature Service does not show in AGOL in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1651160#M66348</link>
    <description>&lt;P&gt;You are my hero. I was ripping my hair out trying to figure out why when adding a layer through the admin rest service, it did not appear in the corresponding feature service layers shown in My Content. I never heard of the ArcGIS Assistant before. You are a life saver. Also, ESRI, thanks for nothing.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 19:06:10 GMT</pubDate>
    <dc:creator>PhilArmijo</dc:creator>
    <dc:date>2025-09-17T19:06:10Z</dc:date>
    <item>
      <title>Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1183309#M46470</link>
      <description>&lt;P&gt;I've added a new feature layer to an existing feature service via the REST API (&lt;A href="https://developers.arcgis.com/rest/services-reference/online/add-to-definition-feature-service-.htm" target="_self"&gt;Add to Definition&lt;/A&gt;). The new feature layer gets added successfully and it is listed in the layers when viewing the service via the service URL. However, the layer does not appear in AGOL and I cannot access it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tested it with several existing feature services in my agol, by adding the exact same layer definition to multiple feature services. Some of for some of them it works perfectly but for others I get the above behaviour.&amp;nbsp; I have even tried to duplicate one of the existing layers in the feature services where I see this issue with no success.&lt;/P&gt;&lt;P&gt;Has anyone experienced this or can provide any help? I am guessing that there is something different about the layers it does not work on.&lt;/P&gt;&lt;P&gt;Edit: It seems to affect feature services originally published from Arcgis Pro&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Point Layer 2 added via to existing layer via REST API. Visible at feature service URL but not showing up in AGOL&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_1-1655326316396.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43560iD2295A395455082B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_1-1655326316396.png" alt="MarkC1_1-1655326316396.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_2-1655326365138.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43561iDE1629ADED24A690/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_2-1655326365138.png" alt="MarkC1_2-1655326365138.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 21:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1183309#M46470</guid>
      <dc:creator>MarkC1</dc:creator>
      <dc:date>2022-06-15T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1183327#M46471</link>
      <description>&lt;P&gt;Ok, so I suspect this is related to feature services published from Arcgis Pro. If you view such the JSON for such a layer in AGOL assistant there is a "Data" page which specifies the layers. This does not seem to get updated when a new layer is added via the REST api.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you compare a feature service created directly in AGOL versus one published from Pro this data page is not present, only the feature service description.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I edited the JSON on the data page in AGOL Assistant and just left an empty set of curly brackets and suddenly the layers I added via the REST api were visible in AGOL. This doesn't seem to have affect my existing data and the service seems to still work fine.&lt;/P&gt;&lt;P&gt;Feature service created via AGOL: Just one "Description Page"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_1-1655329252620.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43567iF9145ECDB8575B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_1-1655329252620.png" alt="MarkC1_1-1655329252620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feature service created in Pro: Description page and Data page detail the layer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_2-1655329343196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43568i32851C413BCDCCB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_2-1655329343196.png" alt="MarkC1_2-1655329343196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit made to the Data page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_0-1655329213908.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43566i9C7CACF56F1B978D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_0-1655329213908.png" alt="MarkC1_0-1655329213908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 21:46:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1183327#M46471</guid>
      <dc:creator>MarkC1</dc:creator>
      <dc:date>2022-06-15T21:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195185#M47082</link>
      <description>&lt;P&gt;I'm trying to do the same right now. I have been successful adding a layer to an&amp;nbsp; existing feature service using the rest API JSON example for Add To Definition.&lt;/P&gt;&lt;P&gt;However I'm having issues with my own JSON code. Would you be willing to share your JSON code?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 23:21:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195185#M47082</guid>
      <dc:creator>RyanTucker</dc:creator>
      <dc:date>2022-09-07T23:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195210#M47083</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/118454"&gt;@RyanTucker&lt;/a&gt; , sorry but I can't share the code. What's your issue? Was your feature service originally published from Arcgis Pro? If so, maybe you can try deleting the service definitio&amp;nbsp; that gets published with it? Did you try my fix above?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 17:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195210#M47083</guid>
      <dc:creator>MarkC1</dc:creator>
      <dc:date>2022-07-23T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195227#M47084</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/209976"&gt;@MarkC1&lt;/a&gt;&amp;nbsp; the data is loaded from a zipped file geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking I'm having a syntax issue. When I submit my checked code (JSON lint)I'm getting a random 400 exception error. So I'm not even getting to the point of seeing a layer listed under the feature service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try again. I guess one thing I don't understand from the&amp;nbsp;&lt;A title="Example " href="https://developers.arcgis.com/rest/services-reference/online/add-to-definition-feature-service-.htm" target="_blank" rel="noopener"&gt;Add to Definition example&lt;/A&gt;&amp;nbsp; &amp;nbsp; is how do you determine the &lt;EM&gt;&lt;STRONG&gt;database_username&lt;/STRONG&gt;&lt;/EM&gt; part of the &lt;STRONG&gt;table name&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 23:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195227#M47084</guid>
      <dc:creator>RyanTucker</dc:creator>
      <dc:date>2022-07-23T23:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195247#M47085</link>
      <description>&lt;P&gt;To determine the database_username part of the table name just look at the json for any layer in your AGOL.This is the same for every layer/fs in your AGOL and doesn't change. Although I don't think it matters if you use the wrong one.&lt;/P&gt;&lt;P&gt;Below is JSON what will work and the steps involved. As a quick test, create a test feature service and see if you can add it.&lt;/P&gt;&lt;P&gt;You said above that you were able to successfully add a layer? Where/when is the 400 exception error occuring? It sounds like you are actually having trouble adding the layer in the first place. If so, it's probably poor json. The easiest thing to do is to copy the json from an existing feature layer and edit it.&lt;/P&gt;&lt;P&gt;An easy way is to first create the layer you want to add to your existing feature service as a new, seperate feature service. Define the fields etc. in Arcgis Pro or in AGOL, then just copy the json that AGOL creates for you.&lt;/P&gt;&lt;P&gt;So for example, here is a simple point layer I created in AGOL. Create you own layer with the fields etc. that you need.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_0-1658654376395.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46632iE506A569D4A09B9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_0-1658654376395.png" alt="MarkC1_0-1658654376395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;View the feature service in and switch to Admin mode (link in top right):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_1-1658654487662.png" style="width: 590px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46633i2338CA65D7693026/image-dimensions/590x242?v=v2" width="590" height="242" role="button" title="MarkC1_1-1658654487662.png" alt="MarkC1_1-1658654487662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Open the layer you want to "copy" to your existing feature service and view and copy the raw json:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_2-1658654689238.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46634iD213CBDAA7005064/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_2-1658654689238.png" alt="MarkC1_2-1658654689238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_3-1658654722580.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46635iCCF12412EF4464BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_3-1658654722580.png" alt="MarkC1_3-1658654722580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit the json:&lt;/P&gt;&lt;P&gt;1. Add&amp;nbsp; { "layers" : [ to the beginning&lt;/P&gt;&lt;P&gt;2. Add corresponding closing brackets to the end ]}&lt;/P&gt;&lt;P&gt;3. Change the "Name" (Row 19)&lt;/P&gt;&lt;P&gt;3. Optional: Change the Layer ID (Row 15) to whatever number you want. If you leave it at 0 AGOL will just assign a layer id to it that doesnt' conflict with any other layers in the feature service&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{  "layers" : [

{

  "adminLayerInfo" : {

    "tableName" : "db_72280.user_72280.Test_Point_Layer_TESTING", 

    "geometryField" : {"name" : "Shape"}, 

    "xssTrustedFields" : ""

  }, 

  "id" : 0, 

  "enableUseOfScaleOutReplicasWhenEditable" : true, 

  "name" : "Testing", 

  "type" : "Feature Layer", 

  "serviceItemId" : "e662b9687e584b07916701428c21c0dc", 

  "displayField" : "", 

  "description" : "", 

  "copyrightText" : "", 

  "defaultVisibility" : true, 

  "editingInfo" : {

    "lastEditDate" : 1658654341208

  }, 

  "relationships" : [], 

  "isDataVersioned" : false, 

  "hasContingentValuesDefinition" : false, 

  "supportsAppend" : true, 

  "supportsCalculate" : true, 

  "supportsASyncCalculate" : true, 

  "supportsTruncate" : true, 

  "supportsAttachmentsByUploadId" : true, 

  "supportsAttachmentsResizing" : true, 

  "supportsRollbackOnFailureParameter" : true, 

  "supportsStatistics" : true, 

  "supportsExceedsLimitStatistics" : true, 

  "supportsAdvancedQueries" : true, 

  "supportsValidateSql" : true, 

  "supportsCoordinatesQuantization" : true, 

  "supportsLayerOverrides" : true, 

  "supportsTilesAndBasicQueriesMode" : true, 

  "supportsFieldDescriptionProperty" : true, 

  "supportsQuantizationEditMode" : true, 

  "supportsApplyEditsWithGlobalIds" : false, 

  "supportsReturningQueryGeometry" : true, 

  "advancedQueryCapabilities" : {

    "supportsPagination" : true, 

    "supportsQueryAttachmentsCountOnly" : true, 

    "supportsPaginationOnAggregatedQueries" : true, 

    "supportsQueryRelatedPagination" : true, 

    "supportsQueryWithDistance" : true, 

    "supportsReturningQueryExtent" : true, 

    "supportsStatistics" : true, 

    "supportsOrderBy" : true, 

    "supportsDistinct" : true, 

    "supportsQueryWithResultType" : true, 

    "supportsSqlExpression" : true, 

    "supportsAdvancedQueryRelated" : true, 

    "supportsCountDistinct" : true, 

    "supportsPercentileStatistics" : true, 

    "supportsSpatialAggregationStatistics" : true, 

    "supportedSpatialAggregationStatistics" : [

      "EnvelopeAggregate", 

      "CentroidAggregate", 

      "ConvexHullAggregate"

    ], 

    "supportsQueryAttachments" : true, 

    "supportsLod" : true, 

    "supportsQueryWithLodSR" : false, 

    "supportedLodTypes" : [

      "geohash"

    ], 

    "supportsReturningGeometryCentroid" : false, 

    "supportsQueryWithDatumTransformation" : true, 

    "supportsHavingClause" : true, 

    "supportsOutFieldSQLExpression" : true, 

    "supportsMaxRecordCountFactor" : true, 

    "supportsTopFeaturesQuery" : true, 

    "supportsDisjointSpatialRel" : true, 

    "supportsQueryWithCacheHint" : true, 

    "supportedOperationsWithCacheHint" : [

      "query", 

      "queryTopFilter", 

      "queryAnalytics", 

      "queryAttachments", 

      "queryRelated"

    ], 

    "supportsQueryAttachmentsWithReturnUrl" : true, 

    "supportsQueryAnalytic" : true, 

    "supportsDefaultSR" : true, 

    "supportsFullTextSearch" : true

  }, 

  "advancedQueryAnalyticCapabilities" : {

    "supportsLinearRegression" : true, 

    "supportsAsync" : true, 

    "supportsPercentileAnalytic" : true

  }, 

  "advancedEditingCapabilities" : {

    "supportedSqlFormatsInCalculate" : [

      "standard"

    ], 

    "supportsAsyncApplyEdits" : true, 

    "supportsReturnEditResults" : true

  }, 

  "infoInEstimates" : [

    "extent", 

    "count"

  ], 

  "useStandardizedQueries" : true, 

  "geometryType" : "esriGeometryPoint", 

  "minScale" : 0, 

  "maxScale" : 0, 

  "extent" : {

    "xmin" : -17811118.526923772, 

    "ymin" : -15538711.096309224, 

    "xmax" : 17811118.526923772, 

    "ymax" : 15538711.096309224, 

    "spatialReference" : {

      "wkid" : 102100, 

      "latestWkid" : 3857

    }

  }, 

  "drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriPMS","url":"RedSphere.png","imageData":"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAA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GGLAk8z5XiaJUd99u8122/IpBA2K9BGg2vWWKAvRYVeLzEa7E1R422m2+MsSTem97nSYnfKyN6/mzATv7AUgqcMrUnmaFlLX3ysM0fj+t/b5lQLtK22QEfyAmiSLKFZpUJ7kBRPXKW4HqCYynWVHKSG2LkyZex1uO1mZM9lKem9Tx9jjY5iNEYo0bKMhn7ZAu0r6H5PpLXCAq0rKJClSjSGynE/QIkrQYqBPe6S2X+AJsY2Ped6iWZk6RlL0c2r5szofRsO9R5S1IfQLRCpQL1aifoYFerpsbkuTImaUJXuXIDiH6/Ys8vm3Mg8L2i20YqsO7fItKLcSXyn0kXccclVqv3MS6at9JU/Ox+ouns+SF6Z4cSupz7l8+z1ucs7LF1AQjOdxfGZzmx8Iu1TRcfnrioICAQEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAv8H44b/6ZiGvGAAAAAASUVORK5CYII=","contentType":"image/png","width":15,"height":15}}}, 

  "allowGeometryUpdates" : true, 

  "hasAttachments" : true, 

  

  "attachmentProperties" : [

    {

      "name" : "id", 

      "fieldName" : "ATTACHMENTID", 

      "isEnabled" : true

    }, 

    {

      "name" : "globalId", 

      "fieldName" : "AttachmentGlobalID", 

      "isEnabled" : true

    }, 

    {

      "name" : "name", 

      "fieldName" : "ATT_NAME", 

      "isEnabled" : true

    }, 

    {

      "name" : "size", 

      "fieldName" : "DATA_SIZE", 

      "isEnabled" : true

    }, 

    {

      "name" : "contentType", 

      "fieldName" : "CONTENT_TYPE", 

      "isEnabled" : true

    }, 

    {

      "name" : "keywords", 

      "fieldName" : "Keywords", 

      "isEnabled" : true

    }, 

    {

      "name" : "exifInfo", 

      "fieldName" : "ExifInfo", 

      "isEnabled" : true

    }

  ], 

  "htmlPopupType" : "esriServerHTMLPopupTypeNone", 

  "hasM" : true, 

  "allowUpdateWithoutMValues" : true, 

  "hasZ" : false, 

  "objectIdField" : "OBJECTID", 

  "uniqueIdField" : 

  {

    "name" : "OBJECTID", 

    "isSystemMaintained" : true

  }, 

  "globalIdField" : "", 

  "typeIdField" : "", 

  "fields" : [

    {

      "name" : "OBJECTID", 

      "type" : "esriFieldTypeOID", 

      "alias" : "OBJECTID", 

      "sqlType" : "sqlTypeOther", 

      "nullable" : false, 

      "editable" : false, 

      "visible" : true, 

      "domain" : null, 

      "defaultValue" : null

    }, 

    {

      "name" : "Field1", 

      "type" : "esriFieldTypeString", 

      "alias" : "Field1", 

      "sqlType" : "sqlTypeOther", 

      "length" : 256, 

      "nullable" : true, 

      "editable" : true, 

      "visible" : true, 

      "domain" : null, 

      "defaultValue" : null

    }, 

    {

      "name" : "Field2", 

      "type" : "esriFieldTypeString", 

      "alias" : "Field2", 

      "sqlType" : "sqlTypeOther", 

      "length" : 256, 

      "nullable" : true, 

      "editable" : true, 

      "visible" : true, 

      "domain" : null, 

      "defaultValue" : null

    }

  ], 

  "indexes" : [

    {

      "name" : "Test_Point_Layer_TESTING_Shape_sidx", 

      "fields" : "Shape", 

      "isAscending" : false, 

      "isUnique" : false, 

      "description" : "Shape Index"

    }, 

    {

      "name" : "PK__Test_Poi__F4B70D85571405E5", 

      "fields" : "OBJECTID", 

      "isAscending" : true, 

      "isUnique" : true, 

      "description" : "clustered, unique, primary key"

    }

  ], 

  "dateFieldsTimeReference" : {

    "timeZone" : "UTC", 

    "respectsDaylightSaving" : false

  }, 

  "preferredTimeReference" : null, 

  "types" : [], 

  "templates" : [

    {

      "name" : "New Feature", 

      "description" : "", 

      "drawingTool" : "esriFeatureEditToolPoint", 

      "prototype" : {

        "attributes" : {

          "Field1" : null, 

          "Field2" : null

        }

      }

    }

  ], 

  "supportedQueryFormats" : "JSON, geoJSON, PBF", 

  "supportedAppendFormats" : "sqlite,geoPackage,shapefile,filegdb,featureCollection,geojson,csv,excel,imageCollection", 

  "supportedExportFormats" : "csv,shapefile,sqlite,geoPackage,filegdb,featureCollection,geojson,excel", 

  "supportedSpatialRelationships" : [

    "esriSpatialRelIntersects", 

    "esriSpatialRelContains", 

    "esriSpatialRelCrosses", 

    "esriSpatialRelEnvelopeIntersects", 

    "esriSpatialRelIndexIntersects", 

    "esriSpatialRelOverlaps", 

    "esriSpatialRelTouches", 

    "esriSpatialRelWithin", 

    "esriSpatialRelDisjoint", 

    "esriSpatialRelRelation"

  ], 

  "supportedContingentValuesFormats" : "JSON, PBF", 

  "supportedSyncDataOptions" : 4, 

  "hasStaticData" : false, 

  "maxRecordCount" : 2000, 

  "standardMaxRecordCount" : 32000, 

  "standardMaxRecordCountNoGeometry" : 32000, 

  "tileMaxRecordCount" : 8000, 

  "maxRecordCountFactor" : 1, 

  "capabilities" : "Create,Delete,Query,Update,Editing"

}
	]
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add to your exsiting service layer. So here is a dummy one I set up:&lt;/P&gt;&lt;P&gt;Before&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_4-1658655427377.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46636i37BDDAD9F81A283E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_4-1658655427377.png" alt="MarkC1_4-1658655427377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Add to Definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_5-1658655464724.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46637i551764091B0C8D11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_5-1658655464724.png" alt="MarkC1_5-1658655464724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Remove the json already there and paste your edited json from above.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_6-1658655557380.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46638i312EB6A292BC6733/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_6-1658655557380.png" alt="MarkC1_6-1658655557380.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Paste in your edited json from above and you should see this response if successful:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkC1_7-1658655664607.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46639iCC8B17C9ED5A3CF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkC1_7-1658655664607.png" alt="MarkC1_7-1658655664607.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 10:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195247#M47085</guid>
      <dc:creator>MarkC1</dc:creator>
      <dc:date>2022-07-24T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195675#M47107</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/209976"&gt;@MarkC1&lt;/a&gt;&amp;nbsp; I was able to get it to work with your example, and subsequently my field schema after some substitution. THank you!&lt;BR /&gt;&lt;BR /&gt;I also found this &lt;A href="https://github.com/esri-es/ArcGIS-REST-API/tree/master/HostedFeatureServices" target="_blank" rel="noopener"&gt;Hosted Features Services Reference&lt;/A&gt;&amp;nbsp;page on github which was a tremdous help. Apparently for table name you dont need to use db_&amp;nbsp; and user_ .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* Create Point layer example from GitHub Link in post */
{
    "layers": [{
		"currentVersion": 10.51,
		"id": 0,
		"name": "Point layer",
		"type": "Feature Layer",
		"displayField": "",
		"description": "",
		"copyrightText": "",
		"defaultVisibility": true,
		"editingInfo": {
			"lastEditDate": null
		},
		"relationships": [],
		"isDataVersioned": false,
		"supportsAppend": true,
		"supportsCalculate": true,
		"supportsTruncate": true,
		"supportsAttachmentsByUploadId": true,
		"supportsAttachmentsResizing": true,
		"supportsRollbackOnFailureParameter": true,
		"supportsStatistics": true,
		"supportsAdvancedQueries": true,
		"supportsValidateSql": true,
		"supportsCoordinatesQuantization": true,
		"supportsApplyEditsWithGlobalIds": false,
		"advancedQueryCapabilities": {
			"supportsPagination": true,
			"supportsPaginationOnAggregatedQueries": true,
			"supportsQueryRelatedPagination": true,
			"supportsQueryWithDistance": true,
			"supportsReturningQueryExtent": true,
			"supportsStatistics": true,
			"supportsOrderBy": true,
			"supportsDistinct": true,
			"supportsQueryWithResultType": true,
			"supportsSqlExpression": true,
			"supportsAdvancedQueryRelated": true,
			"supportsCountDistinct": true,
			"supportsLod": true,
			"supportsReturningGeometryCentroid": false,
			"supportsQueryWithDatumTransformation": true,
			"supportsHavingClause": true,
			"supportsOutFieldSQLExpression": true
		},
		"useStandardizedQueries": true,
		"geometryType": "esriGeometryPoint",
		"minScale": 0,
		"maxScale": 0,
		"extent": {
			"xmin": -20037508.342788905,
			"ymin": -8175201.3721496435,
			"xmax": -10018754.171394452,
			"ymax": 12175461.54272524,
			"spatialReference": {
				"wkid": 102100
			}
		},
		"drawingInfo": {
			"renderer": {
				"type": "simple",
				"symbol": {
					"type": "esriPMS",
					"url": "RedSphere.png",
					"imageData": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTU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2qdAcz6t/bRov4mONeaaoYl+p22rHF0bVNAmKtBvweIXGxNcfFH8eNlC4m6wMWMusEnKpn5hyo48pj9gLe4SNG9QoGGLAk8z5XiaJUd99u8122/IpBA2K9BGg2vWWKAvRYVeLzEa7E1R422m2+MsSTem97nSYnfKyN6/mzATv7AUgqcMrUnmaFlLX3ysM0fj+t/b5lQLtK22QEfyAmiSLKFZpUJ7kBRPXKW4HqCYynWVHKSG2LkyZex1uO1mZM9lKem9Tx9jjY5iNEYo0bKMhn7ZAu0r6H5PpLXCAq0rKJClSjSGynE/QIkrQYqBPe6S2X+AJsY2Ped6iWZk6RlL0c2r5szofRsO9R5S1IfQLRCpQL1aifoYFerpsbkuTImaUJXuXIDiH6/Ys8vm3Mg8L2i20YqsO7fItKLcSXyn0kXccclVqv3MS6at9JU/Ox+ouns+SF6Z4cSupz7l8+z1ucs7LF1AQjOdxfGZzmx8Iu1TRcfnrioICAQEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAv8H44b/6ZiGvGAAAAAASUVORK5CYII=",
					"contentType": "image/png",
					"width": 15,
					"height": 15
				}
			}
		},
		"allowGeometryUpdates": true,
		"hasAttachments": true,
		"htmlPopupType": "esriServerHTMLPopupTypeNone",
		"hasM": false,
		"hasZ": false,
		"objectIdField": "OBJECTID",
		"uniqueIdField": {
			"name": "OBJECTID",
			"isSystemMaintained": true
		},
		"globalIdField": "",
		"typeIdField": "",
		"fields": [{
			"name": "OBJECTID",
			"type": "esriFieldTypeOID",
			"alias": "OBJECTID",
			"sqlType": "sqlTypeOther",
			"nullable": false,
			"editable": false,
			"domain": null,
			"defaultValue": null
		}],
		"indexes": [],
		"types": [],
		"templates": [{
			"name": "New Feature",
			"description": "",
			"drawingTool": "esriFeatureEditToolPoint",
			"prototype": {
				"attributes": {}
			}
		}],
		"supportedQueryFormats": "JSON, geoJSON",
		"hasStaticData": false,
		"maxRecordCount": 2000,
		"standardMaxRecordCount": 32000,
		"tileMaxRecordCount": 8000,
		"maxRecordCountFactor": 1,
		"capabilities": "Query,Editing,Create,Update,Delete,Sync",
		"syncEnabled": true,
		"adminLayerInfo": {
			"geometryField": {
				"name": "Shape",
				"srid": 102100
			}
		}
	}],
	"tables": []
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 22:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1195675#M47107</guid>
      <dc:creator>RyanTucker</dc:creator>
      <dc:date>2022-07-25T22:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1226782#M48623</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/209976"&gt;@MarkC1&lt;/a&gt;&amp;nbsp;just FYI; I have a case open with ESRI to try and rectify this issue where we need to edit the JSON through Assistant to make the added features layers show up on the feature service content page.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1226782#M48623</guid>
      <dc:creator>RyanTucker</dc:creator>
      <dc:date>2022-10-28T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1319793#M53979</link>
      <description>&lt;P&gt;Any word if this case is resolved. I've just successfully added layers to a hosted feature layer and they show up in the rest services directory but not on the Item overview page.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougGreen_0-1692297409825.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78397i6E5B7CF126108339/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougGreen_0-1692297409825.png" alt="DougGreen_0-1692297409825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 18:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1319793#M53979</guid>
      <dc:creator>DougGreen</dc:creator>
      <dc:date>2023-08-17T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1319925#M53987</link>
      <description>&lt;P&gt;Unfortunately, no.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 00:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1319925#M53987</guid>
      <dc:creator>RyanTucker</dc:creator>
      <dc:date>2023-08-18T00:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1322944#M54169</link>
      <description>&lt;P&gt;I talked to ESRI support about this and they finally told me it was a known bug:&amp;nbsp;&lt;A href="https://support.esri.com/fr-fr/bug/new-layers-added-to-a-service-via-the-rest-endpoint-do-bug-000145205" target="_blank"&gt;https://support.esri.com/fr-fr/bug/new-layers-added-to-a-service-via-the-rest-endpoint-do-bug-000145205&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you need to add the layer/table to a map, you can do it manually as explained at the bottom of the bug page.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1322944#M54169</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2023-08-28T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356145#M56202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was successful testing this on a newly created hosted feature layer but when I try and add it to my production hosted feature layer I get this message:&lt;/P&gt;&lt;PRE&gt;{
  "error" : 
  {
    "code" : 400, 
    "message" : "Unable to add feature service definition.", 
    "details" : [
      "Incorrect syntax near the keyword 'on'."
    ]
  }
}&lt;/PRE&gt;&lt;P&gt;I ran the JSON through Lint and it was valid. Any insight on why?&lt;/P&gt;&lt;P&gt;The hosted feature layers are deployed from an ARCGIS Solution and there's bunch of existing layer and tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 19:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356145#M56202</guid>
      <dc:creator>ANRGIS</dc:creator>
      <dc:date>2023-12-03T19:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356248#M56208</link>
      <description>&lt;P&gt;What are you sending?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;"Incorrect syntax near the keyword 'on'."&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Seems to me like it's something you're sending to the API.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 13:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356248#M56208</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2023-12-04T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356252#M56209</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yep. It's JSON for adding a new layer using the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;addToDefinition&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;parameter like&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/209976"&gt;@MarkC1&lt;/a&gt;&amp;nbsp;outlines. Works for newly created layer but not the one I want.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 13:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356252#M56209</guid>
      <dc:creator>ANRGIS</dc:creator>
      <dc:date>2023-12-04T13:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356271#M56210</link>
      <description>&lt;P&gt;Are you sure you are in the right thread? This is for successfully sent data through the API where the layer/table appears afterwards when querying the API but does not show on the AGOL interface.&lt;/P&gt;&lt;P&gt;Anyway, check what you are sending to the API and search for "on" as is suggested in your error message. Possibly a SQL query?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 14:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356271#M56210</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2023-12-04T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356328#M56211</link>
      <description>&lt;P&gt;You're right, not exactly the right thread but the thread has best explanation executing the add layer definition. "on" shows up about a hundred times, I don't think the error is helpful in this case. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 15:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1356328#M56211</guid>
      <dc:creator>ANRGIS</dc:creator>
      <dc:date>2023-12-04T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1415706#M58856</link>
      <description>&lt;P&gt;How to upload file while using AddToDefination API ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 05:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1415706#M58856</guid>
      <dc:creator>AvinashDalvi_</dc:creator>
      <dc:date>2024-04-26T05:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1512250#M60572</link>
      <description>&lt;P&gt;For anyone else that finds this page and tries to follow the work around instructions for &lt;A href="https://support.esri.com/en-us/bug/new-layers-added-to-a-service-via-the-rest-endpoint-do-bug-000145205" target="_self"&gt;BUG-000145205&lt;/A&gt;, the instructions on that page are not correct. Those instructions have you create a new hosted feature layer (which defeats the purpose of using "Add to Definition"). Correct instructions below:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the hosted feature layer page that you added a new layer to&lt;/LI&gt;&lt;LI&gt;Click on any of the layers shown in the "Layers" section&lt;/LI&gt;&lt;LI&gt;Within that page on the right side, find and copy the rest service URL&lt;/LI&gt;&lt;LI&gt;Open the map you want to add the new layer to in map viewer&lt;/LI&gt;&lt;LI&gt;Go to Add &amp;gt; Add layer from URL&lt;/LI&gt;&lt;LI&gt;Paste the URL in the URL box ("ArcGIS Server web service" should get selected by default)&lt;/LI&gt;&lt;LI&gt;In the URL, change the ending number to the layer ID of the new layer you added&lt;/LI&gt;&lt;LI&gt;Click on Next&lt;/LI&gt;&lt;LI&gt;The layer should now be visible in the map&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1512250#M60572</guid>
      <dc:creator>BRENNEJM</dc:creator>
      <dc:date>2024-07-30T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1562640#M62567</link>
      <description>&lt;P&gt;Finally found this after searching a bit yesterday when this same issue came up, so thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/209976"&gt;@MarkC1&lt;/a&gt;&amp;nbsp;and others for your efforts here.&lt;/P&gt;&lt;P&gt;Appreciate this thread alerting me to take a look at the service's Data JSON via ArcGIS Assistant.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;        {
            "id": 3
        },
        {
            "id": 4
        },
        {
            "id": 5
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "id" in this case corresponds to the sublayer or table in the service.&amp;nbsp; If you click on a layer or table in the web interface, or if you drill down into a layer or table via the REST pages, you will see this "sublayer" information.&amp;nbsp; &amp;nbsp; &lt;A href="https://blahblah/name_of_service/0" target="_blank" rel="noopener"&gt;https://blahblah/name_of_service/0&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;--- the '0' in this example.&lt;/P&gt;&lt;P&gt;I added two new tables to my service using the addToDefinition REST API (described here and elsewhere.)&amp;nbsp; These tables did not show up in the data JSON.&amp;nbsp; (Sublayers/tables with an ID of 6 and 7.)&lt;/P&gt;&lt;P&gt;I edited the DATA JSON and added in the missing IDs (under "tables" since I was adding tables.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;        {
            "id": 6
        },
        {
            "id": 7
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing the above added the two new tables back into the web interface which resolved my issue.&lt;/P&gt;&lt;P&gt;Few things to note - the "id" in this case corresponds to the sublayer/table in the item - these increment as you add them and normally start with layers and end in tables.&amp;nbsp; So, if you had two layers and one table...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sublayer 0: Layer 0&lt;/LI&gt;&lt;LI&gt;Sublayer 1: Layer 1&lt;/LI&gt;&lt;LI&gt;Sublayer 2: Table 0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps add to the discussion.&lt;/P&gt;&lt;P&gt;As a general rule of thumb for this whole process, and there are examples of using addToDefinition elsewhere and within this thread - I suggest creating a mock service with new layers/tables in AGOL/Enterprise or hosted via ArcGIS Pro.&amp;nbsp; Use the REST Admin pages to copy the layer or table formatting for an individual layer and the beginning format for the "layers" or "tables" part of the object from the mock service.&amp;nbsp; I do not believe you need the database section of the JSON - just the section starting with the new layer/table ID and the formatting for the "layers" or "tables" part of the JSON.&lt;/P&gt;&lt;P&gt;Also, always make sure you make a copy of the full Admin JSON on your existing service.&amp;nbsp; We back these up from time-to-time, as well.&amp;nbsp; I would suggesting backing up your service to FGDB, as well.&lt;/P&gt;&lt;P&gt;After adding the new layer/table to the existing definition, if the layer/table does not show up in the Overview page - edit the Data JSON using ArcGIS Assistant as above.&lt;/P&gt;&lt;P&gt;This whole process is not for the faint-of-heart.&amp;nbsp; I find it extraordinarily easy to mismatch the formatting somewhere and not have the addToDefinition take or something else like this can occur even if you do everything correctly.&amp;nbsp; If there is an enhancement to be able to add a new layer or table to an &lt;STRONG&gt;&lt;EM&gt;existing service&lt;/EM&gt; &lt;/STRONG&gt;in AGOL or Enterprise via the web interface, which also allows copying the schema from an existing layer or table, I would gladly upvote!&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1562640#M62567</guid>
      <dc:creator>MitchellGrafstein</dc:creator>
      <dc:date>2024-11-26T14:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer added to Feature Service does not show in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1611972#M64640</link>
      <description>&lt;P&gt;Chiming in here, I was working on this issue yesterday. Check out my response to this post &lt;A href="https://community.esri.com/t5/arcgis-online-questions/add-a-layer-to-a-hosted-feature-layer/td-p/1323931/page/2" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, I shared a snippet of my code in which I update the Item Details to reflect the layer change. Hope it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 14:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-added-to-feature-service-does-not/m-p/1611972#M64640</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2025-05-06T14:09:38Z</dc:date>
    </item>
  </channel>
</rss>

