<?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 Packaging succeeded, but publishing failed. ERROR 001369: - One Solution in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81691#M954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently, the 1369 error can have a lot of causes and potential solutions.&lt;/P&gt;&lt;P&gt;Some other reported solutions are here: &lt;A _jive_internal="true" href="https://community.esri.com/thread/137218?q=Publishing"&gt;https://community.esri.com/thread/137218?q=Publishing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently encountered this error when trying to publish the&lt;BR /&gt;OutageDetails mxd from the Esri Water Solutions for the Isolation Trace (comes&lt;BR /&gt;from WaterWebIsolationA4W.zip)&amp;nbsp; This is an mxd that is referencing an empty schema.&lt;/P&gt;&lt;P&gt;I was however able to publish the mxd up to AGOL.&amp;nbsp; I tried to publish this in a variety of ways, from ArcMap&lt;BR /&gt;10.2.2, 10.4, from my desktop, directly from the Portal server, etc… all with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri provided the following explanation and solution:&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;EM&gt;“The problem is the layer ‘Outage Area’ uses the 'length' field as the display field. &lt;/EM&gt;&lt;EM&gt;You wouldn’t be able to publish the map in 10.4. To get around the problem you could change the display field to something else in the mxd. &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;EM&gt;In AGOL the publishing&amp;nbsp; implementation is a bit different.”&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The Display Expression Field is found in your mxd’s Layer Properties&lt;BR /&gt;on the Display Tab.&amp;nbsp; If I looked in there, this was originally set to: SHAPE_Length.&lt;/P&gt;&lt;P&gt;For this mxd, I set the Display Field to OutageType and was then able to publish the mxd successfully to our 10.4&lt;BR /&gt;Portal.&amp;nbsp; I am guessing that this was a bug introduced in 10.4 otherwise the Esri Water Solutions folks would have&lt;BR /&gt;caught it under Portal 10.3.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I first searched the Server log files, I came across some error messages that were very familiar looking:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="color: #333333; font-family: 'Helvetica',sans-serif; font-size: 10.5pt; mso-ansi-language: EN;"&gt;"Failed to create the service.: ERROR: code:500, Failed to create the service 'Hosted/OutageDetails.FeatureServer'. &lt;BR /&gt;The submitted field 'st_length(shape)' does not exist in the table”&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s that last line that caught my attention because I had seen it before when trying to publish zipped file geodatabases with certain polygons.&amp;nbsp; Some polygons would fail to publish to Portal while others would publish fine. &lt;BR /&gt;All would publish to AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had put in a ticket with Esri and level 1 support found a workaround, &lt;STRONG&gt;export the polygon to a&lt;BR /&gt;shapefile and then import it back into the Feature Class&lt;/STRONG&gt;.&amp;nbsp; It's a usable work around but didn’t define&lt;BR /&gt;the underlying problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the problematic polygons, I see the same issue, Default Display field is set to SHAPE_LEN.&amp;nbsp; When we do the export/import, a new field is created in the schema: SHAPE_Leng which then had the display field set to it.&amp;nbsp; SHAPE_Length was still there but was no longer the default display field.&amp;nbsp; This explains why the export/import works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a note to others, changing the display field only works for a layer in an mxd.&amp;nbsp; You then publish the mxd to Portal.&lt;/P&gt;&lt;P&gt;In order to make the change permanent in the Feature Class (in a file.gdb or an egdb) you probably have to modify your schema so that the field used for the default display field is not the 'length' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following information lists out how the default display field is chosen (at least from one source, I think back about 9.3) &amp;amp; was taken from:&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap"&gt;http://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------&lt;/P&gt;&lt;P&gt;The default display field is chosen according to the following priorities:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;First field of type Text whose name contains the word "name" (case-insensitive)&lt;/LI&gt;&lt;LI&gt;First field of type Text&lt;/LI&gt;&lt;LI&gt;First field of an integer type (Long or Short, presumably)&lt;/LI&gt;&lt;LI&gt;First field of any type&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I don't think there is any way to specify the primary display field without using a layer or layer file, other than using the above logic to name/order your fields accordingly.&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;If you have a polygon with only a default polygon schema (OBJECTID, SHAPE, SHAPE.AREA, SHAPE.LEN) then the default display field is going to be set to SHAPE.LEN and this won't publish to Portal 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed this in our problematic polygons by creating a next text field: XXX.NAME&lt;/P&gt;&lt;P&gt;This way the default display field sees this as the first text field with the word “name”&lt;/P&gt;&lt;P&gt;I then set a default value to the text field, probably not necessary for this fix but useful in our maps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified this fix works to publish these problematic polygons to Portal 10.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 22:26:44 GMT</pubDate>
    <dc:creator>PaulDavidson1</dc:creator>
    <dc:date>2016-04-21T22:26:44Z</dc:date>
    <item>
      <title>Packaging succeeded, but publishing failed. ERROR 001369: - One Solution</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81691#M954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently, the 1369 error can have a lot of causes and potential solutions.&lt;/P&gt;&lt;P&gt;Some other reported solutions are here: &lt;A _jive_internal="true" href="https://community.esri.com/thread/137218?q=Publishing"&gt;https://community.esri.com/thread/137218?q=Publishing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently encountered this error when trying to publish the&lt;BR /&gt;OutageDetails mxd from the Esri Water Solutions for the Isolation Trace (comes&lt;BR /&gt;from WaterWebIsolationA4W.zip)&amp;nbsp; This is an mxd that is referencing an empty schema.&lt;/P&gt;&lt;P&gt;I was however able to publish the mxd up to AGOL.&amp;nbsp; I tried to publish this in a variety of ways, from ArcMap&lt;BR /&gt;10.2.2, 10.4, from my desktop, directly from the Portal server, etc… all with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri provided the following explanation and solution:&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;EM&gt;“The problem is the layer ‘Outage Area’ uses the 'length' field as the display field. &lt;/EM&gt;&lt;EM&gt;You wouldn’t be able to publish the map in 10.4. To get around the problem you could change the display field to something else in the mxd. &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;EM&gt;In AGOL the publishing&amp;nbsp; implementation is a bit different.”&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The Display Expression Field is found in your mxd’s Layer Properties&lt;BR /&gt;on the Display Tab.&amp;nbsp; If I looked in there, this was originally set to: SHAPE_Length.&lt;/P&gt;&lt;P&gt;For this mxd, I set the Display Field to OutageType and was then able to publish the mxd successfully to our 10.4&lt;BR /&gt;Portal.&amp;nbsp; I am guessing that this was a bug introduced in 10.4 otherwise the Esri Water Solutions folks would have&lt;BR /&gt;caught it under Portal 10.3.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I first searched the Server log files, I came across some error messages that were very familiar looking:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="color: #333333; font-family: 'Helvetica',sans-serif; font-size: 10.5pt; mso-ansi-language: EN;"&gt;"Failed to create the service.: ERROR: code:500, Failed to create the service 'Hosted/OutageDetails.FeatureServer'. &lt;BR /&gt;The submitted field 'st_length(shape)' does not exist in the table”&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s that last line that caught my attention because I had seen it before when trying to publish zipped file geodatabases with certain polygons.&amp;nbsp; Some polygons would fail to publish to Portal while others would publish fine. &lt;BR /&gt;All would publish to AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had put in a ticket with Esri and level 1 support found a workaround, &lt;STRONG&gt;export the polygon to a&lt;BR /&gt;shapefile and then import it back into the Feature Class&lt;/STRONG&gt;.&amp;nbsp; It's a usable work around but didn’t define&lt;BR /&gt;the underlying problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the problematic polygons, I see the same issue, Default Display field is set to SHAPE_LEN.&amp;nbsp; When we do the export/import, a new field is created in the schema: SHAPE_Leng which then had the display field set to it.&amp;nbsp; SHAPE_Length was still there but was no longer the default display field.&amp;nbsp; This explains why the export/import works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a note to others, changing the display field only works for a layer in an mxd.&amp;nbsp; You then publish the mxd to Portal.&lt;/P&gt;&lt;P&gt;In order to make the change permanent in the Feature Class (in a file.gdb or an egdb) you probably have to modify your schema so that the field used for the default display field is not the 'length' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following information lists out how the default display field is chosen (at least from one source, I think back about 9.3) &amp;amp; was taken from:&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap"&gt;http://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------&lt;/P&gt;&lt;P&gt;The default display field is chosen according to the following priorities:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;First field of type Text whose name contains the word "name" (case-insensitive)&lt;/LI&gt;&lt;LI&gt;First field of type Text&lt;/LI&gt;&lt;LI&gt;First field of an integer type (Long or Short, presumably)&lt;/LI&gt;&lt;LI&gt;First field of any type&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I don't think there is any way to specify the primary display field without using a layer or layer file, other than using the above logic to name/order your fields accordingly.&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;If you have a polygon with only a default polygon schema (OBJECTID, SHAPE, SHAPE.AREA, SHAPE.LEN) then the default display field is going to be set to SHAPE.LEN and this won't publish to Portal 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed this in our problematic polygons by creating a next text field: XXX.NAME&lt;/P&gt;&lt;P&gt;This way the default display field sees this as the first text field with the word “name”&lt;/P&gt;&lt;P&gt;I then set a default value to the text field, probably not necessary for this fix but useful in our maps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified this fix works to publish these problematic polygons to Portal 10.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 22:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81691#M954</guid>
      <dc:creator>PaulDavidson1</dc:creator>
      <dc:date>2016-04-21T22:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging succeeded, but publishing failed. ERROR 001369: - One Solution</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81692#M955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @&lt;A _jive_internal="true" data-userid="38896" data-username="pk_davidson" href="https://community.esri.com/people/pk_davidson" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 13.7136px;"&gt;Paul Davidson&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I met with the same problem, after a long time reviewing the source of the problem.&lt;/P&gt;&lt;P&gt;I noticed that your &lt;SPAN&gt;alias &lt;/SPAN&gt;is the same in a few areas.&lt;/P&gt;&lt;P&gt;After checking and fixing the nicknames, there was no problem, maybe your problem can be improved if you do the same checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/309874_Alias.jpg" style="width: 620px; height: 282px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 07:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81692#M955</guid>
      <dc:creator>GIS_Solutions</dc:creator>
      <dc:date>2017-01-27T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging succeeded, but publishing failed. ERROR 001369: - One Solution</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81693#M956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When publishing a simple polygon layer to an ArcGIS Enterprise Portal as a Hosted Feature Service (version 10.6.1), the publishing operation failed with the error&amp;nbsp; &lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;The submitted field 'st_length(shape)' does not exist in the table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;found in the ArcGIS Server log.&amp;nbsp; Based on the information found here,&amp;nbsp; &lt;A class="link-titled" href="https://github.com/Esri/arcgis-cookbook/issues/44" title="https://github.com/Esri/arcgis-cookbook/issues/44"&gt;Error with publish a feature service · Issue #44 · Esri/arcgis-cookbook · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; I found that default Display Expression in my ArcMap Layer was set to the Shape_Length field.&amp;nbsp; I changed the default display expression to a text field and then the layer published to ArcGIS Enterprise without any error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 19:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/packaging-succeeded-but-publishing-failed-error/m-p/81693#M956</guid>
      <dc:creator>WilliamRice</dc:creator>
      <dc:date>2019-03-20T19:02:29Z</dc:date>
    </item>
  </channel>
</rss>

