ArcGIS Administrator API for Python not returning the full result *Error

222
2
12-17-2019 10:19 AM
yaserkhouja
New Contributor II

Hi, 

I am trying to run a python script in Jupyter notebook to get my organization users with last time login. It runs successfully, but I only get 8 users then it stopped and shows an error (Please see attached picture for error details.) Does anyone know why am getting this error? 

0 Kudos
2 Replies
Peter_Klingman
Esri Regular Contributor

Hi Yaser,

The API is now on version 1.8 - I'm interested are you still running into the error? I'm also wondering if it's a specific user that is causing the error, can you write a try/except clause to see if only a couple usernames fail?

Cross-posting to the ArcGIS API for Python‌ channel as well. 

Hope this helps,

-Peter

0 Kudos
GeofyAdmin
New Contributor III

So you are assuming all users have logged in at least once?

What would happen to your print function if the lastlogin date is null?

I would split the calls and validate that dates returned are valid dates before printing. 

Good luck

0 Kudos