<?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: Error trying to sync bulk published datastore item &amp;quot;Invalid value for serverFolder. Layers have been published from this data store before an in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1624610#M11456</link>
    <description>&lt;P&gt;Try server_folder="", at least it worked for me.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 09:32:19 GMT</pubDate>
    <dc:creator>MatejVrtich</dc:creator>
    <dc:date>2025-06-18T09:32:19Z</dc:date>
    <item>
      <title>Error trying to sync bulk published datastore item "Invalid value for serverFolder. Layers have been published from this data store before and the val</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1562923#M10915</link>
      <description>&lt;P&gt;I'm trying to sync a bulk published datastore item following the sample code &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis._impl._datastores.PortalDataStore.publish_layers" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Code I have tried&lt;/P&gt;&lt;LI-CODE lang="c"&gt;bulk_publish_job = portal_ds.publish_layers(item = db_dsitem,
                                            srv_config = service_template,
                                            server_id = host_id,
                                            folder = None,
                                            server_folder= None)

bulk_publish_job = portal_ds.publish_layers(item = db_dsitem,
                                            srv_config = service_template,
                                            server_id = host_id)
bulk_publish_job = portal_ds.publish_layers(item = db_dsitem,
                                            srv_config = service_template,
                                            server_id = host_id,
                                            server_folder= 'CurrentFolderName')&lt;/LI-CODE&gt;&lt;P&gt;I get this error no matter the value I enter for the server folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Publish layers failed.
Invalid value for serverFolder. Layers have been published from this data store before and the value is read-only. Passing null is valid.  
(Error Code: 400)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 04:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1562923#M10915</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2024-11-27T04:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to sync bulk published datastore item "Invalid value for serverFolder. Layers have been published from this data store before an</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1624610#M11456</link>
      <description>&lt;P&gt;Try server_folder="", at least it worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 09:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1624610#M11456</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2025-06-18T09:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to sync bulk published datastore item "Invalid value for serverFolder. Layers have been published from this data store before an</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1624914#M11459</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/644"&gt;@MatejVrtich&lt;/a&gt;&amp;nbsp;This is what worked for me as well.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 03:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-trying-to-sync-bulk-published-datastore-item/m-p/1624914#M11459</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2025-06-19T03:13:56Z</dc:date>
    </item>
  </channel>
</rss>

