<?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 Invalid_alias_name_exception when using addToDefintion to add layer to Feature Service in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/invalid-alias-name-exception-when-using/m-p/1571762#M4249</link>
    <description>&lt;P&gt;I followed this post to create a service and add layers using the rest API &lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-feature-class-in-spatiotemporal-data/td-p/768776" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-feature-class-in-spatiotemporal-data/td-p/768776&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works when I create a service with&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/createservice/" target="_self"&gt;createService&lt;/A&gt;&amp;nbsp;and the try to add a layer using&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/add-to-definition-feature-service/" target="_self"&gt;addToDefinition&lt;/A&gt;&amp;nbsp;but I cannot use our naming convention. All our assets in portal and server start with numbers 00_ through 09_, and this works fine, i.e 00_some_service&lt;/P&gt;&lt;P&gt;When I add new service called 00_test it creates it fine, but when I try to add a layer with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/server/rest/admin/services/Hosted/00_test/FeatureServer/addToDefinition?f=pjson&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;I get an error. How can I fix it so the rest server accepts my request with this naming?&lt;/P&gt;&lt;P&gt;I do not start my name with those character such as the error message is saying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
 "error": {
  "code": 500,
  "message": "Failed to create the template for the data source 'method [PUT], host [https://SDSSRV01D.DEMOCRATIZINGDATA.NET:9220], URI [/_index_template/esri-ds-data_3aeaccea-51fe-2302-e7ed-f4c74689df92_os-2-3-0_template], status line [HTTP/1.1 400 Bad Request]\n{\"error\":{\"root_cause\":[{\"type\":\"invalid_alias_name_exception\",\"reason\":\"Invalid alias name [__test1_testlayer]: must not start with '_', '-', or '+'\"}],\"type\":\"invalid_alias_name_exception\",\"reason\":\"Invalid alias name [__test1_testlayer]: must not start with '_', '-', or '+'\"},\"status\":400}'. Error: {1}",
  "details": []
 }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever the name starts with a number I get this error, but the point is that it's been working on all other parts of the system, so I need to get it work here too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 20:21:02 GMT</pubDate>
    <dc:creator>chris_del101</dc:creator>
    <dc:date>2024-12-30T20:21:02Z</dc:date>
    <item>
      <title>Invalid_alias_name_exception when using addToDefintion to add layer to Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/invalid-alias-name-exception-when-using/m-p/1571762#M4249</link>
      <description>&lt;P&gt;I followed this post to create a service and add layers using the rest API &lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-feature-class-in-spatiotemporal-data/td-p/768776" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-feature-class-in-spatiotemporal-data/td-p/768776&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works when I create a service with&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/createservice/" target="_self"&gt;createService&lt;/A&gt;&amp;nbsp;and the try to add a layer using&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/add-to-definition-feature-service/" target="_self"&gt;addToDefinition&lt;/A&gt;&amp;nbsp;but I cannot use our naming convention. All our assets in portal and server start with numbers 00_ through 09_, and this works fine, i.e 00_some_service&lt;/P&gt;&lt;P&gt;When I add new service called 00_test it creates it fine, but when I try to add a layer with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/server/rest/admin/services/Hosted/00_test/FeatureServer/addToDefinition?f=pjson&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;I get an error. How can I fix it so the rest server accepts my request with this naming?&lt;/P&gt;&lt;P&gt;I do not start my name with those character such as the error message is saying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
 "error": {
  "code": 500,
  "message": "Failed to create the template for the data source 'method [PUT], host [https://SDSSRV01D.DEMOCRATIZINGDATA.NET:9220], URI [/_index_template/esri-ds-data_3aeaccea-51fe-2302-e7ed-f4c74689df92_os-2-3-0_template], status line [HTTP/1.1 400 Bad Request]\n{\"error\":{\"root_cause\":[{\"type\":\"invalid_alias_name_exception\",\"reason\":\"Invalid alias name [__test1_testlayer]: must not start with '_', '-', or '+'\"}],\"type\":\"invalid_alias_name_exception\",\"reason\":\"Invalid alias name [__test1_testlayer]: must not start with '_', '-', or '+'\"},\"status\":400}'. Error: {1}",
  "details": []
 }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever the name starts with a number I get this error, but the point is that it's been working on all other parts of the system, so I need to get it work here too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 20:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/invalid-alias-name-exception-when-using/m-p/1571762#M4249</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2024-12-30T20:21:02Z</dc:date>
    </item>
  </channel>
</rss>

