Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone_item() hosted feature service referencing to source portal #1871

Open
stwrr opened this issue Jul 17, 2024 · 1 comment
Open

clone_item() hosted feature service referencing to source portal #1871

stwrr opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels

Comments

@stwrr
Copy link

stwrr commented Jul 17, 2024

Describe the bug
When I use clone_item() on a hosted feature service, even after it has been cloned into the target portal, it still references the source portal.
So when I try to use the cloned content in the target portal, a pop-up appears asking me to connect to the source portal in order to use the content in my target portal.

I even tried setting the copy_data parameter to true but it doesn't change anything.

To Reproduce
To clone my content I have used two differents methods (but both doesn't work as intended) :

1st method :

2nd method :

dashboard = source.content.get(itemId)
dash_clone = target.content.clone_items(items = [dashboard], search_existing_items = True)

Expected behavior
I expect to be able to use the cloned content in my target portal, without needing to connect to the source portal.

Platform (please complete the following information):

  • OS: Windows 11
  • Browser chrome
  • Python API Version 2.1.0.5
@nparavicini7
Copy link
Collaborator

@stwrr have you tried using the latest version of the Python API? This is an older version and there have been various improvements since then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants