<?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 ERROR:  Updating CSV generated Feature Service with CSV in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/error-updating-csv-generated-feature-service-with/m-p/1021744#M318</link>
    <description>&lt;P&gt;Ran into an interesting issue today....&lt;/P&gt;&lt;P&gt;While working through the mechanics of how to keep our future open data site automatically up to date using CSVs (**sigh**), I ran into an interesting works in AGOL fails in Portal situation.&amp;nbsp; Below is the very rough draft of a script that WILL update ArcGIS Online no sweat, but WON'T update ArcGIS Portal (10.8.1).&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P class="lia-indent-padding-left-30px"&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import FeatureLayerCollection&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# ------------------------------------------------------------------------------&lt;BR /&gt;# Functions&lt;BR /&gt;# ------------------------------------------------------------------------------&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def main():&lt;BR /&gt;#-------------------------------------------------------------------------------&lt;BR /&gt;# Name: Function - main&lt;BR /&gt;# Purpose: Starts the whole thing.&lt;BR /&gt;#-------------------------------------------------------------------------------&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;connectedP = connect()&lt;BR /&gt;overwrite(connectedP)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def connect ():&lt;BR /&gt;&lt;BR /&gt;connectedP = GIS(url='&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;', username='', password='')&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return (connectedP)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def overwrite (connectedP):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# Find Item&lt;BR /&gt;search_result= connectedP.content.search('the item id here', 'Feature Layer')&lt;BR /&gt;FS_item = search_result[0]&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;taretedOverwrite = FeatureLayerCollection.fromitem(FS_item)&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;taretedOverwrite.manager.overwrite(r'\\TheFileShare\Datasets\ThePayLoad.csv')&lt;BR /&gt;except Exception as overWrite_Failure:&lt;BR /&gt;print (overWrite_Failure)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;main()&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The errors I am seeing on the Portal side remind me of the Excel compatibility patch needed in 10.7.1.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;Failed to publish item '&lt;A href="https://web.site.com/gis/rest/services/Hosted/Johns_Failure_Test/FeatureServer" target="_blank" rel="noopener"&gt;https://web.site.com/gis/rest/services/Hosted/Johns_Failure_Test/FeatureServer&lt;/A&gt;' (id:c9fcbc39e97c466095161b8315fc3ade). ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service). Failed. Failed to execute (Publish Portal Service). Failed.. Job ID: 'jdb7783e3fc054677830ca868cd154fae'&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;When I dig deeper into the Hosting server, I see this too:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOver"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:28 PM&lt;/TD&gt;&lt;TD&gt;Error executing tool. Publish Portal Service Job ID: jdb7783e3fc054677830ca868cd154fae : ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service). Failed. Failed to execute (Publish Portal Service).&lt;/TD&gt;&lt;TD&gt;System/PublishingTools.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOdd"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:28 PM&lt;/TD&gt;&lt;TD&gt;Delegate job failed.&lt;/TD&gt;&lt;TD&gt;System/PublishingTools.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:26 PM&lt;/TD&gt;&lt;TD&gt;Error executing tool. PublishPortalService Job ID: jeb5288aafb9f4a5bad3c2a3ea7aa5bd2 : ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service).&lt;/TD&gt;&lt;TD&gt;System/PublishingToolsEx.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOdd dojoxGridRowSelected"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:26 PM&lt;/TD&gt;&lt;TD&gt;Missing publish parameter: longitudeFieldName.&lt;/TD&gt;&lt;TD&gt;System/PublishingToolsEx.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Anyone have any thoughts?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 21:02:33 GMT</pubDate>
    <dc:creator>John_Spence</dc:creator>
    <dc:date>2021-01-29T21:02:33Z</dc:date>
    <item>
      <title>ERROR:  Updating CSV generated Feature Service with CSV</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/error-updating-csv-generated-feature-service-with/m-p/1021744#M318</link>
      <description>&lt;P&gt;Ran into an interesting issue today....&lt;/P&gt;&lt;P&gt;While working through the mechanics of how to keep our future open data site automatically up to date using CSVs (**sigh**), I ran into an interesting works in AGOL fails in Portal situation.&amp;nbsp; Below is the very rough draft of a script that WILL update ArcGIS Online no sweat, but WON'T update ArcGIS Portal (10.8.1).&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P class="lia-indent-padding-left-30px"&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import FeatureLayerCollection&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# ------------------------------------------------------------------------------&lt;BR /&gt;# Functions&lt;BR /&gt;# ------------------------------------------------------------------------------&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def main():&lt;BR /&gt;#-------------------------------------------------------------------------------&lt;BR /&gt;# Name: Function - main&lt;BR /&gt;# Purpose: Starts the whole thing.&lt;BR /&gt;#-------------------------------------------------------------------------------&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;connectedP = connect()&lt;BR /&gt;overwrite(connectedP)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def connect ():&lt;BR /&gt;&lt;BR /&gt;connectedP = GIS(url='&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;', username='', password='')&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return (connectedP)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;def overwrite (connectedP):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# Find Item&lt;BR /&gt;search_result= connectedP.content.search('the item id here', 'Feature Layer')&lt;BR /&gt;FS_item = search_result[0]&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;taretedOverwrite = FeatureLayerCollection.fromitem(FS_item)&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;taretedOverwrite.manager.overwrite(r'\\TheFileShare\Datasets\ThePayLoad.csv')&lt;BR /&gt;except Exception as overWrite_Failure:&lt;BR /&gt;print (overWrite_Failure)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;return&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;main()&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The errors I am seeing on the Portal side remind me of the Excel compatibility patch needed in 10.7.1.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;Failed to publish item '&lt;A href="https://web.site.com/gis/rest/services/Hosted/Johns_Failure_Test/FeatureServer" target="_blank" rel="noopener"&gt;https://web.site.com/gis/rest/services/Hosted/Johns_Failure_Test/FeatureServer&lt;/A&gt;' (id:c9fcbc39e97c466095161b8315fc3ade). ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service). Failed. Failed to execute (Publish Portal Service). Failed.. Job ID: 'jdb7783e3fc054677830ca868cd154fae'&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;When I dig deeper into the Hosting server, I see this too:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOver"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:28 PM&lt;/TD&gt;&lt;TD&gt;Error executing tool. Publish Portal Service Job ID: jdb7783e3fc054677830ca868cd154fae : ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service). Failed. Failed to execute (Publish Portal Service).&lt;/TD&gt;&lt;TD&gt;System/PublishingTools.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOdd"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:28 PM&lt;/TD&gt;&lt;TD&gt;Delegate job failed.&lt;/TD&gt;&lt;TD&gt;System/PublishingTools.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:26 PM&lt;/TD&gt;&lt;TD&gt;Error executing tool. PublishPortalService Job ID: jeb5288aafb9f4a5bad3c2a3ea7aa5bd2 : ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds. Missing publish parameter: longitudeFieldName. Failed to execute (Publish Portal Service).&lt;/TD&gt;&lt;TD&gt;System/PublishingToolsEx.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="dojoxGridRow dojoxGridRowOdd dojoxGridRowSelected"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SEVERE&lt;/TD&gt;&lt;TD&gt;Jan 29, 2021, 12:38:26 PM&lt;/TD&gt;&lt;TD&gt;Missing publish parameter: longitudeFieldName.&lt;/TD&gt;&lt;TD&gt;System/PublishingToolsEx.GPServer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Anyone have any thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/error-updating-csv-generated-feature-service-with/m-p/1021744#M318</guid>
      <dc:creator>John_Spence</dc:creator>
      <dc:date>2021-01-29T21:02:33Z</dc:date>
    </item>
  </channel>
</rss>

