Hi,
A recent bug introduced with the latest API means that I have had to incorporate part of a Pro-based team script into an ArcGIS Online notebook. Quite aside from the frustration of having to code round the issue, this has now been compounded as it seems that the execute_notebook function in the API only allows you to run notebooks that the individual owns! My team all have the "Create and edit notebooks" ability in their AGOL accounts enabled, and the notebook in question is shared with them, but the script fails when it tries to execute the referenced notebook as they are not the owner. Is this really the case?
I would ask what use having the sharing option for notebooks is if another user can't execute it via code?
If this is by design/a major oversight please can we get it fixed? Or at the very least have an option for collaboratively owned notebooks?!
Alternatively, if I've got this wrong in any way or am misunderstanding, then any advice on making the process work would be gratefully received!
Users with that privilege should be able to run a notebook shared with them.
I would check:
More info here:
@ChristopherCounsell Thanks for confirming. I do use:
gis = GIS("Home")
in the notebook. What would be my alternative to make is usable by the users it was shared with
It shouldn't stop you from running the notebook.
It's more, does your python script rely on logging in as the content owner. Can't tell without the whole script.
If you can't even run the notebook this is not your issue