Skip to content

OfflineContentManager import_content does not swizzle Web Experience host portal url(s) #2328

@shane-pienaar-gbs

Description

@shane-pienaar-gbs

Describe the bug
I'm trying to use OfflineContentManager to export a simple Web Experience and its dependencies from Portal A to a package, then import the package to Portal B.

The Web Experience contains a simple Web Map with a simple Hosted Feature Service.
I've used the process as described here: https://developers.arcgis.com/python/latest/guide/offline-cloning-backups/, as well as the API documentation: https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#offlinecontentmanager

The Feature Services imports correctly
The Web Map imports correctly, and swizzles the layer URLs to Portal B
The Web Experience imports, but still references Portal A

Question: Is this expected behaviour? Nothing in the documentation I can see explicitly states that URLs will be swizzled. Perhaps I've made an assumption?

To Reproduce
As per documentation:

  1. Use OfflineContentManager.export_items() to create a contentexport package from a Web Experience from Portal A.
  2. Use OfflineContentManager.import_content() to import the contentexport package to Portal B.
  3. Open the newly imported Web Experience in Portal B
  4. Test to see if Portal A is referred to.

error:
N/A

Screenshots
N/A

Expected behavior
I assumed that the Web Experience's URLs would be swizzled, just as the Web Map's URLs are.

Platform (please complete the following information):

  • OS: Windows
  • Browser: Edge
  • Python API Version: 2.4.1.1
  • Source Portal: 11.5
  • Target Portal: 11.5

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions