Python API - Append ArcGIS Online Features

1162
1
02-23-2018 10:04 AM
NikholaiO_Hara
Occasional Contributor

I am trying to append features from one feature layer to another using the Python API using Jupyter notebooks. I log into ArcGIS Online using gis = GIS(username="username", password="password"). I find both layers and create a feature set for the records i wish to append. I then try to execute the append and get an error which seems to be due to permissions. Error below. If anyone has could offer assistance, that would be greatly appreciated. 

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi Nikholai,

The error appears to indicate that the script does not have your login credentials when you are trying to run it. I would suggest trying to login using the format below:

password = getpass()

my_gis = GIS("https://www.arcgis.com","AGOLUsername",password)

Are all the layers you are using public layers?

Here's the source I used for this code:

https://developers.arcgis.com/python/guide/using-the-gis/  

0 Kudos