GAM ERROR during execution (large domain)

218 views
Skip to first unread message

Alan

unread,
Oct 11, 2021, 1:58:00 PM10/11/21
to GAM for Google Workspace
Hello,

During the following GAM command

gam print groups matchsetting allowExternalMembers TRUE | gam redirect csv ./ExternalMembers.csv

I got the following error

Traceback (most recent call last):
  File "__main__.py", line 43, in <module>
  File "__main__.py", line 34, in main
  File "__init__.py", line 54164, in ProcessGAMCommand
  File "__init__.py", line 54054, in closeSTDFilesIfNotMultiprocessing
  File "__init__.py", line 54050, in closeSTDFile
OSError: [Errno 22] Invalid argument
[25080] Failed to execute script __main__

(I also got a good few of these just to be concise
Temporary error: rateLimitExceeded - Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'groupssettings.googleapis.com' for consumer 'project_number:9*******2'., Backing off: 16 seconds, Retry: 4/10

Any thing i can do to avoid this? (batching the request? set up a query size to dumb the know data and relauch at a fixed point?)

any ideas? 
thanks

Alan

unread,
Oct 11, 2021, 1:59:59 PM10/11/21
to GAM for Google Workspace
Just noticed that this was at the end of the inital process..

Getting Group Settings for z****ch@g******.com (2914/2914)


the 2914 being the identified number of groups in the domain.

Does this help?

Ross Scroggs

unread,
Oct 11, 2021, 2:45:44 PM10/11/21
to google-ap...@googlegroups.com
Alan

You want: gam redirect csv ./ExternalMembers.csv print groups matchsetting allowExternalMembers TRUE

Ross
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/968b114e-7dfd-41f9-ad67-7d84a7636199n%40googlegroups.com.

Alan

unread,
Oct 11, 2021, 3:11:44 PM10/11/21
to GAM for Google Workspace
homer-simpson-les-simpson.gif
Reply all
Reply to author
Forward
0 new messages