<?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 Help setting up a folder data store in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-setting-up-a-folder-data-store/m-p/1218514#M12699</link>
    <description>&lt;P&gt;I'm trying to set up and use a folder data store, so that I can access a layout.pagx file stored on my server in code (specifically, in ConvertWebMapToArcGISProject). ArcPy code should be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;templatePath = "\\myserver.com\server\LayoutStorage"
templateFile = "layout.pagx"
templateFull = os.path.join(templatePath, templateFile)
result = arcpy.mp.ConvertWebMapToArcGISProject(data, templateFull)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Where LayoutStorage is the name of my folder data store, and layout.pagx is my layout file (see&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/convertwebmaptoarcgisproject.htm" target="_blank" rel="noopener"&gt;convertwebmaptoarcgisproject&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/data-store-items.htm" target="_blank" rel="noopener"&gt;data-store-items&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Now, I don't think I've set this up correctly.&lt;/P&gt;&lt;P&gt;The folder I've set up to be my data store is located on the server, simply at C:\Datastore_Layouts. In here there is the layout.pagx file (so C:\Datastore_Layouts\layout.pagx). The folder is shared with the ArcGIS user accounts.&lt;/P&gt;&lt;P&gt;The data store item, in my Portal, has been set to address the \\localhost\Datastore_Layouts folder. This has been validated. It can be accessed by my &lt;A href="https://myserver.com/server" target="_blank" rel="noopener"&gt;https://myserver.com/server&lt;/A&gt;&amp;nbsp;server (with a green tick next to it for status).&lt;/P&gt;&lt;P&gt;However, I keep getting:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;RuntimeError: Missing or invalid layout template file.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I must say though that, for testing purposes, I am doing this on my local install of ArcGIS Pro (and not on the server machine).&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated - this is (hopefully) the last thing I need to get on this. Either that, or if there is a way to address a layout.pagx file from the existing Portal?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 05:22:40 GMT</pubDate>
    <dc:creator>MichaelBell</dc:creator>
    <dc:date>2022-10-04T05:22:40Z</dc:date>
    <item>
      <title>Help setting up a folder data store</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-setting-up-a-folder-data-store/m-p/1218514#M12699</link>
      <description>&lt;P&gt;I'm trying to set up and use a folder data store, so that I can access a layout.pagx file stored on my server in code (specifically, in ConvertWebMapToArcGISProject). ArcPy code should be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;templatePath = "\\myserver.com\server\LayoutStorage"
templateFile = "layout.pagx"
templateFull = os.path.join(templatePath, templateFile)
result = arcpy.mp.ConvertWebMapToArcGISProject(data, templateFull)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Where LayoutStorage is the name of my folder data store, and layout.pagx is my layout file (see&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/convertwebmaptoarcgisproject.htm" target="_blank" rel="noopener"&gt;convertwebmaptoarcgisproject&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/data-store-items.htm" target="_blank" rel="noopener"&gt;data-store-items&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Now, I don't think I've set this up correctly.&lt;/P&gt;&lt;P&gt;The folder I've set up to be my data store is located on the server, simply at C:\Datastore_Layouts. In here there is the layout.pagx file (so C:\Datastore_Layouts\layout.pagx). The folder is shared with the ArcGIS user accounts.&lt;/P&gt;&lt;P&gt;The data store item, in my Portal, has been set to address the \\localhost\Datastore_Layouts folder. This has been validated. It can be accessed by my &lt;A href="https://myserver.com/server" target="_blank" rel="noopener"&gt;https://myserver.com/server&lt;/A&gt;&amp;nbsp;server (with a green tick next to it for status).&lt;/P&gt;&lt;P&gt;However, I keep getting:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;RuntimeError: Missing or invalid layout template file.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I must say though that, for testing purposes, I am doing this on my local install of ArcGIS Pro (and not on the server machine).&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated - this is (hopefully) the last thing I need to get on this. Either that, or if there is a way to address a layout.pagx file from the existing Portal?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 05:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-setting-up-a-folder-data-store/m-p/1218514#M12699</guid>
      <dc:creator>MichaelBell</dc:creator>
      <dc:date>2022-10-04T05:22:40Z</dc:date>
    </item>
  </channel>
</rss>

