Hi,
I am trying to automate stuff with python (I am using Jupyter through anaconda) and it's the first time using add an item with Arcgis api for python and I get this error when trying to add a Shapefile into my Enterprise portal.
'NoneType' object is not subscriptable
Is this related to the connection to the portal or to the add item?
The string for the connection doesn't give me any error, but the add function does.
Code is:
from arcgis.gis import GIS
gis = GIS(url="https://something.cloud.esriuk.com/portal",
username="company\\emailaddressusedformyuser",
password="mypassword")
ip = {
"type" : "Shapefile",
"title" : "TEST",
"tags" : "test"
}
item = gis.content.add(data=r"data\TEST.zip", item_properties=ip)
item
Any suggestions would be higlhy appreciated, thanks.