I am trying to export a content item as a File GDB via the API. I do not own the item, but I am a group manager for a Shared Update group, with which the item is shared. I have admin privileges in my organization, but obviously am not a member of the partnered organization that owns the item and is also in the Shared Update group.
According to the note in the documentation: "Only the item owner or a user with an administrator role can run this method, unless a Location Tracking Service or Location Tracking View is used." I technically meet the second criteria and when I manually tested exporting from the item content page in AGO, it was successful with no errors.
Code snippet:
backup = prod_rdseg_item.export(prod_rdseg_item.title+"- BACKUP "+dt.strftime("%m%d%Y"),"File Geodatabase",
tags=["VTrans"],snippet="BACKUP COPY OF PCIP PROD SERVICES - CREATED "+dt.strftime("%m%d%Y"))
Here's the error I'm getting in my notebook:
Solved! Go to Solution.
Fix was enabling Sync capabilities on the item.
Fix was enabling Sync capabilities on the item.