<?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: Issues with publishing and overwriting web layers using modelbuilder in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092897#M44876</link>
    <description>&lt;P&gt;It sounds like publishing is now successful but overwriting isn't? If so, double-check that the web layer name matches the existing web layer name and the Overwrite Existing Web Layer check box is checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 20:20:01 GMT</pubDate>
    <dc:creator>JonahLay</dc:creator>
    <dc:date>2021-08-26T20:20:01Z</dc:date>
    <item>
      <title>Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092729#M44854</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I'm currently using ArcGIS Pro 2.8.2.&amp;nbsp; I happened upon a script that was graciously shared by Jonah Lay to publish and overwrite web layers in Modelbuilder (see &lt;EM&gt;&lt;STRONG&gt;JonahLayCode.txt&lt;/STRONG&gt;&lt;/EM&gt;).&amp;nbsp; I followed the directions for adding the script, creating the script tool, and adding to an existing model.&amp;nbsp; The directional post from Jonah can be found here:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/publish-and-overwrite-web-layers-in-modelbuilder/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/publish-and-overwrite-web-layers-in-modelbuilder/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've attached a screenshot that illustrates my model with the Publish Web Feature Layer section added (see &lt;EM&gt;&lt;STRONG&gt;AutoPublishOutagesScreenshot.png&lt;/STRONG&gt;&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;In running the model as it is illustrated in the above screenshot, I received the following error messages (see &lt;EM&gt;&lt;STRONG&gt;AutoPublishOutagesFailureScreenshot.png&lt;/STRONG&gt;&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;I am not a programmer.&amp;nbsp; That we just establish. To that end, can someone please offer some kernels of wisdom on how I may succeed in using this script successfully given the errors I have encountered?&amp;nbsp; I'm sure it is something that I have not done properly given the indicated messages.&lt;/P&gt;&lt;P&gt;Thank you one and all in advance.&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 15:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092729#M44854</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092753#M44856</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the screenshots. Just a quick question first... Are you attempting to publish a web feature layer to ArcGIS Online or ArcGIS Enterprise?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092753#M44856</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-26T16:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092760#M44857</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;Thank you so much for replying.&lt;/P&gt;&lt;P&gt;I am attempting to update a hosted feature layer on ArcGIS Online.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092760#M44857</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092814#M44860</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I tried recreating the model in your screenshot and was able to successfully publish a web feature layer. I'm not seeing any issues with the script itself. There are a couple things that might be worth checking though:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are the output data variables set to Add to display? (Right-click Layer Name and YukonOutageLocsAGOWMPro in your model).&lt;/LI&gt;&lt;LI&gt;For the map variable—Do you have other layers or tables in your map, or is it just the stand-alone table (mapLocations...csv)?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092814#M44860</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-26T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092823#M44861</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;Thank you for doing some investigating.&amp;nbsp; It's much appreciated.&amp;nbsp; Yes, the output layer (YukonOutageLocsAGWMPro) is set to Add to Display.&amp;nbsp; Other than the mapLocations...csv file called on as a table variable, both the World Topographic and World Hillshade are present in the map and form the basemap under the YukonOutageLocsAGWMPro locations.&amp;nbsp; Could that be the issue?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092823#M44861</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T17:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092861#M44865</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;No, the basemaps shouldn't be a problem. The error, "No Layer or Table was initialized" seems to indicate that no layer or table was present in the input map (though you should have received an analyzer error if this was the case). If you can confirm that the input map is correct, then I'm not sure what else could be causing the issue. If you are willing to share the project and data as a package, feel free to message me privately and I can take a closer look.&lt;/P&gt;&lt;P&gt;The following help topic has some suggestions you can also try:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/999001-999999/tool-errors-and-warnings-999998-999999-999999.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/999001-999999/tool-errors-and-warnings-999998-999999-999999.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If nothing else works, contacting &lt;A href="http://esriurl.com/support" target="_self"&gt;Technical Support&lt;/A&gt; might be your best option.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092861#M44865</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-26T19:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092866#M44866</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;Should my .csv file be located as a standalone table in the map?&amp;nbsp; The lead-off table variable in modelbuilder is "pointed to" the location of the csv file.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092866#M44866</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T19:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092872#M44869</link>
      <description>&lt;P&gt;I don't think that would make a difference, but it is worth trying. You can add the file to the map, then drag it into the model as a variable.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092872#M44869</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-26T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092875#M44871</link>
      <description>&lt;P&gt;I went through the suggestion help topic and decided to check the csv file for "empty cells".&amp;nbsp; I removed the offending records that did not possess XY coordinate information and the script without errors.&amp;nbsp; However...and there is always an however...right...I checked my corresponding AGO layer...the one that should be updated and sure enough it was recently updated...but when I go to the layers items details section...Data tab...it refused to load the data.&amp;nbsp; I then attempted to open the layer within a new AGO map and there are no point locations showing.&amp;nbsp; Any thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092875#M44871</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T19:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092879#M44872</link>
      <description>&lt;P&gt;I should probably add that only the hosted feature layer shows today's date but it's corresponding service definition file on AGO is unchanged and shows yesterday's date.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092879#M44872</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-26T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092897#M44876</link>
      <description>&lt;P&gt;It sounds like publishing is now successful but overwriting isn't? If so, double-check that the web layer name matches the existing web layer name and the Overwrite Existing Web Layer check box is checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1092897#M44876</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-26T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093055#M44897</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; Publishing ran successfully without any issues.&amp;nbsp; I double checked the parameters of the Publish Web Feature Layer component and everything looks fine and matches (see SDDFile Location. png).&amp;nbsp; I circled the Output Directory portion of the Publish Web Feature Layer screenshot because I think something might be happening here.&amp;nbsp; After running the model, I checked and indeed the &lt;STRONG&gt;YukonOutageLocsAGOWMPro&lt;/STRONG&gt; hosted feature layer displayed an updated date but contained no data.&amp;nbsp; Also peculiar is that the corresponding Service Definition file, located in the same folder as my &lt;STRONG&gt;YukonOutageLocsAGOWMPro&lt;/STRONG&gt; hosted feature layer, was not updated.&amp;nbsp; However, a new Service Definition file was created and placed in my root default directory in AGO with the same name as my hosted feature layer.&amp;nbsp; Could there be a some conflict going on between the two service definition files?&amp;nbsp; In addition, am I storing the SDDFiles correctly in the Output Directory section of the Publish Web Feature Layer parameters section?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093055#M44897</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-27T10:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093223#M44924</link>
      <description>&lt;P&gt;Thanks for confirming, Jeff.&lt;/P&gt;&lt;P&gt;Did you change the output directory after publishing and before overwriting? Does overwriting work if the output directory is a local folder like on your C drive instead of a network folder?&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 17:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093223#M44924</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-27T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093530#M44965</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;I'm not sure about the order of change for the output directory but I did perform two scenarios to see if there was any difference in the workflow.&amp;nbsp; I first performed a standard Publish Web Layer for the &lt;STRONG&gt;YukonOutageLocsAGOWMPro&lt;/STRONG&gt; layer out of Pro and placed it within a folder I created on AGO entitled "Yukon Outage".&amp;nbsp; Both the hosted feature layer and corresponding source definition file were successfully published.&amp;nbsp; I then ran the modelbuilder script to update this hosted feature layer and source definition file.&amp;nbsp; The update ran successfully, the data was indeed updated in this AGO folder and the point locations can be added to a map in AGO without issue.&amp;nbsp; However, the only caveat was that it also produced a source definition file and saved it to my root AGO directory file.&amp;nbsp; I did experiment with changing the Publish Web Feature Layer parameters by redirecting the Output Directory path to my C:\ drive but this did not change the end result.&amp;nbsp; I guess the question is, which is the valid source definition file?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 11:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093530#M44965</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-30T11:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093662#M44974</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I believe you are seeing this behavior because your script tool hasn't been modified to include the portalFolder property. The &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/publish-and-overwrite-web-layers-in-modelbuilder/#:~:text=in%20Map%20Viewer.-,Next%20steps,-In%20this%20article" target="_self"&gt;Next Steps section&lt;/A&gt; in the &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/publish-and-overwrite-web-layers-in-modelbuilder/" target="_self"&gt;blog&lt;/A&gt; covers how to do this.&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 16:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093662#M44974</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-30T16:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093701#M44980</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;That did it!&amp;nbsp; Thank you so much for all your help.&amp;nbsp; This script will help us immensely.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 17:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093701#M44980</guid>
      <dc:creator>JD1016</dc:creator>
      <dc:date>2021-08-30T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with publishing and overwriting web layers using modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093737#M44982</link>
      <description>&lt;P&gt;Glad to hear. You're welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 18:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-publishing-and-overwriting-web-layers/m-p/1093737#M44982</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2021-08-30T18:50:57Z</dc:date>
    </item>
  </channel>
</rss>

