<?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: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207909#M9225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a folder without "_" in the name....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2019 12:55:27 GMT</pubDate>
    <dc:creator>ThomasColson</dc:creator>
    <dc:date>2019-07-15T12:55:27Z</dc:date>
    <item>
      <title>ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207908#M9224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm publishing a map service from ArcGIS Pro 2.3 using a Python script. It gets through create a service draft and staging the service with no errors. When uploading the service definition, it succeeds when publishing to the root folder:&lt;/P&gt;&lt;PRE&gt;arcpy.UploadServiceDefinition_server(sd, arcgis_server)&lt;/PRE&gt;&lt;P&gt;It fails if I try to publish to a different folder, either creating a new one or using an existing one (made in Server Manager):&lt;/P&gt;&lt;PRE&gt;arcpy.UploadServiceDefinition_server(sd, arcgis_server, in_folder_type="NEW", in_folder="test_pro")&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;arcpy.UploadServiceDefinition_server(sd, arcgis_server, in_folder_type="EXISTING", in_folder="test_pro")&lt;/PRE&gt;&lt;P&gt;Each of these fail with an error along the lines of:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):   File "", line 1, in    File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\server.py", line 991, in UploadServiceDefinition     raise e   File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\server.py", line 988, in UploadServiceDefinition     retval = convertArcObjectToPythonObject(gp.UploadServiceDefinition_server(*gp_fixargs((in_sd_file, in_server, in_service_name, in_cluster, in_folder_type, in_folder, in_startupType, in_override, in_my_contents, in_public, in_organization, in_groups), True)))   File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 498, in      return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed. Failed to execute (UploadServiceDefinition).&lt;/PRE&gt;&lt;P&gt;While I can work with publishing to root for testing purposes, it's not going to be acceptable for production level automation -- our services get organized into a number of directories and never stay in the root. What is causing UploadServiceDefinition_server to fail when I try to specify a target folder as a parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207908#M9224</guid>
      <dc:creator>EricaPfister</dc:creator>
      <dc:date>2019-07-12T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207909#M9225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a folder without "_" in the name....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 12:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207909#M9225</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2019-07-15T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207910#M9226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good thought, but same error with folder "test", unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207910#M9226</guid>
      <dc:creator>EricaPfister</dc:creator>
      <dc:date>2019-07-15T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207911#M9227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More curious, if I try a folder that doesn't exist:&lt;/P&gt;&lt;PRE&gt;arcpy.UploadServiceDefinition_server(sd, arcgis_server, in_folder_type="EXISTING", in_folder="notafolder")&lt;/PRE&gt;&lt;P&gt;it uploads successfully, without comment, to the root -- doesn't create &lt;EM&gt;notafolder&lt;/EM&gt;, and doesn't warn me about the different destination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207911#M9227</guid>
      <dc:creator>EricaPfister</dc:creator>
      <dc:date>2019-07-15T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207912#M9228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're in tech support territory with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207912#M9228</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2019-07-15T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207913#M9229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Glad to hear I'm not the only one. Thought I might be doing something wrong. Same behavior. I wanted to publish to a folder besides root and tried.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;inSdFile &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sd_output_filename
inServer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; myserver
inFolderType &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'EXISTING'&lt;/SPAN&gt;
inFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Test'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inSdFile&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inFolderType&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inFolder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Well that fails miserably...&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ExecuteError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Failed to execute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Parameters are &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; valid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
ERROR &lt;SPAN class="number token"&gt;000800&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; The value &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; a member of default&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
Failed to execute &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;UploadServiceDefinition&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaving out all the parameters except for sdfile and server, works fine. So connection is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, trying to create a new folder bombs with the same error.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;inSdFile = sd_output_filename
inServer = myserver
inFolderType = 'NEW'
inFolder = 'Test2'
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp;from&amp;nbsp;arcpy.UploadServiceDefinition_server.__doc__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;in_folder_type {String}:&lt;/P&gt;&lt;P&gt;The folder type used to determine the source for the folder. The default is to get a folder from the service definition. You can also choose to get a list of folders already existing on the specified online server, or you can specify a new folder to be created once you share this web layer.&lt;/P&gt;&lt;P&gt;* NEW-Creates a new folder.&lt;/P&gt;&lt;P&gt;* EXISTING-Specifies a folder that exists on the server.&lt;/P&gt;&lt;P&gt;* FROM_SERVICE_DEFINITION-The folder already specified in the service definition. This is the default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in_folder {String}:&lt;/P&gt;&lt;P&gt;Use this option to specify the folder for the web layer. The default is to use the folder specified in the service definition. If you chose New folder type, use this parameter to enter a new folder name. If you chose Existing folder type, you can choose from the existing folders on the server.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some references to &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00776-00800-000800.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Error 00800&lt;/A&gt;, but nothing that helped with this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Description&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;The keyword used is not a member of the list of acceptable keywords.&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Change the keyword to a member of the list provided. For more information on what each keyword signifies, review the tool's help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking this somehow is a bug.&amp;nbsp;Interestingly the &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/server/upload-service-definition.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ESRI online documentation&lt;/A&gt; even's got the name of the method wrong, which mirrors the Error message above. Maybe the used the wrong keywords in there somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Upload Service Definition—Help | ArcGIS Desktop          &lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;UploadServiceDefinition(in_sd_file, in_server, {in_service_name}, {in_cluster},
{in_folder_type}, {in_folder}, {in_startupType}, {in_override}, {in_my_contents},
{in_public}, {in_organization}, {in_groups})&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207913#M9229</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-11T10:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207914#M9230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out it is a recognized bug that I was running into (and you as well it appears) -- according to &lt;A href="https://my.esri.com/#/support/bugs/BUG-000118315"&gt;https://my.esri.com/#/support/bugs/BUG-000118315&lt;/A&gt;&amp;nbsp;it will be fixed in Pro 2.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 15:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207914#M9230</guid>
      <dc:creator>EricaPfister</dc:creator>
      <dc:date>2019-08-21T15:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207915#M9231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, thanks for&amp;nbsp;confirming. The link didn't work for me, I think because it's your "myesri". But that's ok. At least,&amp;nbsp;I can&amp;nbsp;focus on finding a&amp;nbsp;usable workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 15:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207915#M9231</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-08-21T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 using Arcpy UploadServiceDefinition_server, service publishes in root but not a folder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207916#M9232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify for anyone who is having this problem, it is a real bug (see link &lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExODMxNQ=="&gt;here&lt;/A&gt;), but there is a good way to get around it.&amp;nbsp; When creating the FeatureSharingDraft object before the upload (as outlined &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm"&gt;here&lt;/A&gt;), simply add one more line (see bold below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;# Create FeatureSharingDraft and set service properties&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; sharing_draft = m.getWebLayerSharingDraft(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"HOSTING_SERVER"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"FEATURE"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, service) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.summary = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"My Summary"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.tags = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"My Tags"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.description = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"My Description"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.credits = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"My Credits"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.useLimitations = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"My Use Limitations"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;sharing_draft.portalFolder =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Test Folder"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN style="color: #3d3d3d; "&gt;Where "Test Folder" is the name of the folder on your server where you want to do the upload.&amp;nbsp; Then when you call the&amp;nbsp;arcpy.UploadServiceDefinition_server function, and set the in_folder_type="EXISTING", it will look to the portal folder you specified in your FeatureSharingDraft object. Hope that helps!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 15:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-3-using-arcpy-uploadservicedefinition/m-p/207916#M9232</guid>
      <dc:creator>JamesSaunders</dc:creator>
      <dc:date>2020-01-28T15:27:27Z</dc:date>
    </item>
  </channel>
</rss>

