<?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:  publish with python a feature service that is not hosted  in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40703#M1665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did found a solution I don’t fully remember it now but I crated SD draft and before crating the SD itself I parse it with an xml library and changed the values so it will be a feature service from my SDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its and old code that I did for a client so I don’t have it on my, but this was the idea, and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t remember if it was for this part of the code but I use both of the python env in this script both python 3 and python 2, because off different capability that I needed. It was done with subprocess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 06:38:35 GMT</pubDate>
    <dc:creator>roialgavish</dc:creator>
    <dc:date>2019-09-04T06:38:35Z</dc:date>
    <item>
      <title>publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40694#M1656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to publish with python a feature service that is not hosted (in my sde)?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 13:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40694#M1656</guid>
      <dc:creator>roialgavish</dc:creator>
      <dc:date>2017-11-25T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40695#M1657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure how to interpret you question. When you mention&amp;nbsp;"not hosted" I assumed that the data will not reside in the portal, but in the explanation below you state "not hosted (in my sde)". Can you clarify&amp;nbsp;what your data source is (where does the data reside now) and where you want to publish the layer (ArcGIS Online or Portal)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 14:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40695#M1657</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-25T14:29:42Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40696#M1658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am building a script in python 3 and plan to run it from pro, the script in his first part will publish serval hosted feature layer to portal 10.5.1 and that is o.k. I have 4 more layers the sit in one project and will publish as one service they are taken from our enterprise geodatabase inside Microsoft sql server.&lt;/P&gt;&lt;P&gt;I want to publish those layers as regular services for the server and not as hosted in the portal. But I couldn't find the way to do it from Arcpy for python 3 modules .&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 14:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40696#M1658</guid>
      <dc:creator>roialgavish</dc:creator>
      <dc:date>2017-11-25T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40697#M1659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no plans for ArcGIS Pro to enable&amp;nbsp;publishing to Server. See this link&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/about/events/uc/get-involved/q-and-a#id=1233" title="https://www.esri.com/about/events/uc/get-involved/q-and-a#id=1233"&gt;Questions and Answers | 2017 Esri User Conference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Is there a plan to allow publishing of services from ArcGIS Pro directly to ArcGIS Server?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;No. The introduction of ArcGIS Enterprise, which integrates Portal for ArcGIS, signifies a shift from the client-server pattern to a Web GIS pattern that takes full advantage of the geoinformation model. A key design concept of Web GIS systems – such as ArcGIS Online or ArcGIS Enterprise - is organizing a collection of items in a portal. Accessing this portal from any device, anywhere, at any time allows you to use, create, and share geographic information throughout your organization, the community, and openly on the web. This information includes items like maps, scenes, layers, analytics, and apps. ArcGIS Server on its own is not capable of integrating into this model without the additional capabilities and content management functionality provided through a portal. For many of today’s advanced GIS service types, including vector tile layers, feature layers, and more, the service by itself does not contain all the information used to style or describe the results. Instead some of this information is part of the corresponding portal item, which gives more flexibility for modifying or changing content on-the-fly instead of going through the full publishing workflow.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ArcGIS Server is a crucial component of ArcGIS Enterprise and can be thought of as the engine behind the scenes, but it does not stand alone in the&lt;/EM&gt; modern GIS.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 15:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40697#M1659</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-25T15:49:07Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40698#M1660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also have a close look at the discussion related to this idea:&amp;nbsp;&lt;A href="https://community.esri.com/ideas/12258" target="_blank"&gt;https://community.esri.com/ideas/12258&lt;/A&gt;&amp;nbsp;. Especially the comments made by &lt;A href="https://community.esri.com/people/dlaw-esristaff" target="_blank"&gt;dlaw-esristaff&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40698#M1660</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-06-22T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40699#M1661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xander,&lt;/P&gt;&lt;P&gt;Thanks for the answers, a follow-up question. I want to publish with python a service that will reffer to the data in the &lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; background: white;"&gt;enterprise geodatabase&lt;/SPAN&gt;, Pro can do that and when you do manually it does not upload an .sd file to the portal and does not write "feature layer (hosted)" in the type field of my content, it only write "feature layer".&lt;/P&gt;&lt;P&gt;How can I do the same thing (not uploading the .sd and not get the (hosted)) with python 3 or ArcGIS API for python.&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40699#M1661</guid>
      <dc:creator>roialgavish</dc:creator>
      <dc:date>2017-11-28T16:40:01Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40700#M1662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you find an answer to your question?&lt;/P&gt;&lt;P&gt;I am also trying to figure this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems strange that there are things that can be done with the ArcGIS Pro UI manually, but can not be done with arcpy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40700#M1662</guid>
      <dc:creator>TorbjornSvangård</dc:creator>
      <dc:date>2018-06-04T12:14:15Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40701#M1663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also looking to write a python script that will publish a feature layer (that does not contain '(hosted)' in its name-it behaves differently than a regular feature layer, and I cannot consume that feature layer from a third party software).&amp;nbsp; I've only found documentation on using getWebLayerSharingDraft, exporting that draft using exportToSDDraft, staging that draft using StageService_server, then uploading using UploadServiceDefinition_server, but then it published a 'Feature_Layer (hosted)' and I cannot use that layer in a webmap.&amp;nbsp; I cannot find the difference between a Feature Layer and a Feature Layer (hosted), nor how to create the former using an arcpy script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(my ultimate goal is to feed into a script the feature classes I want, and have the script set symbology, enable Sync and editing, name the layers a specific name, publish 3 different feature layers, then bundle them into a web map, ready for consumption by a third party software-it has to have exact configurations, thus the need for a script that configures the map the same way every time).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40701#M1663</guid>
      <dc:creator>MatthewWalker</dc:creator>
      <dc:date>2019-09-03T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40702#M1664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you able to resolve this issue?&amp;nbsp; I have the same need to publish regular feature layers, that do not show up as hosted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40702#M1664</guid>
      <dc:creator>MatthewWalker</dc:creator>
      <dc:date>2019-09-03T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40703#M1665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did found a solution I don’t fully remember it now but I crated SD draft and before crating the SD itself I parse it with an xml library and changed the values so it will be a feature service from my SDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its and old code that I did for a client so I don’t have it on my, but this was the idea, and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t remember if it was for this part of the code but I use both of the python env in this script both python 3 and python 2, because off different capability that I needed. It was done with subprocess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 06:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40703#M1665</guid>
      <dc:creator>roialgavish</dc:creator>
      <dc:date>2019-09-04T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40704#M1666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;Yes, eventually I found this page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/sharing/mapservicedraft-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/sharing/mapservicedraft-class.htm"&gt;MapServiceDraft—Sharing module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the sample code "Modify SDDraft example".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to publish a Feature Service that uses referenced data from a enterprise geodatabase (not hosted) with:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;doc = DOM.parse(sddraft_output_filename) &lt;/P&gt;&lt;P&gt;typeNames = doc.getElementsByTagName('TypeName')&lt;BR /&gt;for typeName in typeNames:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if typeName.firstChild.data == "FeatureServer":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; extension = typeName.parentNode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; for extElement in extension.childNodes:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if extElement.tagName == 'Enabled':&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extElement.firstChild.data = 'true'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;f = open(sddraft_mod_xml_file, 'w')&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;doc.writexml(f)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;f.close() &lt;BR /&gt;&lt;BR /&gt;arcpy.StageService_server(sddraft_mod_xml_file, sd_output_filename)&lt;BR /&gt;arcpy.UploadServiceDefinition_server(sd_output_filename, ags)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is helpful.&lt;/P&gt;&lt;P&gt;/Torbjörn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 06:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40704#M1666</guid>
      <dc:creator>TorbjornSvangård</dc:creator>
      <dc:date>2019-09-04T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40705#M1667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is a Discussion rather than a question, we can't mark a correct answer.&amp;nbsp; At the time this was posted, it was not possible to publish to a standalone server from ArcGIS Pro.&amp;nbsp; At Pro 2.3 (January 2019) this became possible with map services through Python only (no UI) and at ArcGIS Pro 2.4 (June 2019) the rest of the service types were added along with the UI.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/sharing/overview/publish-a-map-service.htm" title="https://pro.arcgis.com/en/pro-app/help/sharing/overview/publish-a-map-service.htm"&gt;Publish a map service—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;and related help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40705#M1667</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2019-09-04T12:35:26Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40706#M1668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, if I understood you correctly, the python code I refered to only works since ArcGIS Pro 2.3 (January 2019)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/40706#M1668</guid>
      <dc:creator>TorbjornSvangård</dc:creator>
      <dc:date>2019-09-05T06:51:52Z</dc:date>
    </item>
    <item>
      <title>Re:  publish with python a feature service that is not hosted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/1139480#M50828</link>
      <description>&lt;P&gt;This script worked wonderfully until we upgraded to ArcGIS Pro 2.9.1, then I had to switch the way firstChild was set in order to get feature server enabled in the sddraft. Throws a bunch of errors but seems to be working anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;extElement.firstChild.data = 'true'&lt;/P&gt;&lt;P&gt;became:&lt;/P&gt;&lt;P&gt;extElement.firstChild.nodeValue = 'true'&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 18:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-with-python-a-feature-service-that-is-not/m-p/1139480#M50828</guid>
      <dc:creator>DorothyShreve</dc:creator>
      <dc:date>2022-02-01T18:28:07Z</dc:date>
    </item>
  </channel>
</rss>

