I'm attempting to run an unattended Power Automate Desktop flow that calls a Python script that uses the ArcGIS Python API. The script works fine in attended mode, but when set to unattended it crashes on the line that connects to AGOL:
from arcgis.gis import GIS
gis = GIS(username='<username>',password='<password>')
No errors are produced, just crashes.
Any ideas?