I have a line at the beginning of a script that reads as follows:
item = gis.content.get("03e43ce195534e028e7bf49e951414c8")I know that the item ID is valid for a hosted feature layer in my ArcGIS Online organization and that the log-in that I'm using to run the script has permission to access it. (It is not shared publicly, so even if you search for it on your own, you won't be able to view it.) If I add the following statement to the script...
print(item)
... the print statement returns "None". Based on this post, a return of "None" means that the feature layer has a size of zero bytes. This isn't possible, as the layer has 502 records.
The subsequent steps involve reading through a specific field to look for the most recent date, but the script doesn't get to that point because the get.content.get step isn't returning data.
Any ideas for troubleshooting?