Hi,
I am a new user to ArcGis Online Notebooks. I have a notebook in which I have created a tile package (.tpkx).
I would like to use Share Package, to transfer the .tpkx from my files (/arcgis/home/) to My Content on ArcGIS Online. I think that Share Package is the way to do this, though if there is a better way I am eager to try anything out.
I've been following this workflow so far, as my end goal is to create a tile service. However, when using Share Package, I get this error:
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 002119: Must be connected and signed into the portal.
Failed to execute (SharePackage).
This is what I am running (but with my username and password):
arcpy.SharePackage_management("/arcgis/home/my_tile_package.tpkx", "username", "password",
"title", "tag1, tag2", "EVERYBODY")
I've tried logging in as (again with my actual username) within the cell I am using share package in and in a separate cell:
import arcpy
from arcgis.gis import GIS
gis=GIS("https://arcgis.com", "my_username")
I am running all of this in an advanced notebook. I know the error has to do with not correctly connecting Arc Online and the notebook somehow, but I can't seem to figure out how to do it the right way.
I appreciate any help and advice!