Copy Content Between Portals

Document created by jskinner-esristaff Employee on Aug 23, 2019Last modified by jskinner-esristaff Employee on Oct 24, 2019
Version 4Show Document
  • View in full screen mode

The attached toolbox contains 2 tools for copying content between Portals. 

 

  • Copy Services
    • copies hosted feature services from the Source Portal to the Target Portal
    • if the hosted feature service exists in the Target Portal, it will be overwritten
      • the tool will then iterate through every user's web maps to see if the original item ID of the feature service exists.  If it does, it will update the web map with the new feature service item ID
  • Copy Map and Applications
    • copies web maps, web applications, and dashboards from the Source Portal to the Target Portal
    • Web Maps
      • if the web map exists in the Target Portal, it will be overwritten
        • the tool will then iterate through every user's web applications/dashboards to see if the original item ID of the web map exists.  If it does, it will update the web application/dashboard with the new web map ID
      • when the web map is copied the tool will search for existing layers and update the web map to use these layers
        • if the layer is not found, and it's a hosted feature service, the hosted feature service will be created in the Target Portal
    • Web Applications
      • if the web application exists in the Target Portal, it will be overwritten as well as the underlying web map
        • the tool will then iterate through every user's web applications/dashboards to see if the original item ID of the web map exists.  If it does, it will update the web application/dashboard with the new web map ID
      • if the web application does not exist, it will copy the web application and web map
        • the tool will search for the web map's services in the Target Portal.  If they exist, it will update the web map with these existing services.  If they do not exist, and they are hosted feature services, it will create the hosted feature services
    • Dashboards
      • if the dashboard exists in the Target Portal, it will be overwritten
      • if the dashboard's underlying web map does not exist, it will be copied as well as any hosted feature services that do not exist

 

For the tool to successfully update the web map, web application, and dashboard IDs the client machine executing this tool must be able to reach the Target Portal's server where Portal for ArcGIS (not the Web Adaptor) is installed (i.e. https://portal.esri.com:7443/arcgis).  It uses this URL to make the post requests.

 

Each tool will share the content with Everyone, and the ArcGIS Enterprise Organization (if it is shared with these in the Source Portal).  It will also share to each Group in the Target Portal if it has the same name as the Source Portal Group. 

 

Note:  This tool is in it's early development and has not been extensively tested.  So far I've tested transferring content where both Portals are version 10.7.1.  Looking to have any issues or recommendations reported in the comments below.

Attachments

Outcomes