PS C:\gam> $list = import-csv groups050312.csv
PS C:\gam> foreach ($entry in $list)
>> {
>> .\gam.exe update group $($entry.GroupID) settings is_archived true
>> .\gam.exe update group $($entry.GroupID) settings message_moderation_level mo
derate_all_messages
>> .\gam.exe update group $($entry.GroupID) settings show_in_group_directory tru
e
>> echo $($entry.GroupID)
>> }
>>
Traceback (most recent call last):
File "gam.py", line 3461, in <module>
File "gam.py", line 1840, in doUpdateGroup
File "gdata\apps\groupsettings\service.pyo", line 162, in update_group_setting
s
File "gdata\service.pyo", line 1394, in Put
File "gdata\service.pyo", line 1357, in PostOrPut
gdata.service.RequestError: {'status': 503, 'body': '<?xml version="1.0" encodin
ain>GData</domain>\n <code>backendError</code>\n <internalReason>Backend Error
</internalReason>\n </error>\n</errors>\n', 'reason': 'Service Unavailable'}
PS C:\gam>
I sometimes (but not every time) get the first group through the commands, but then it fails.
When I very first ran it it worked for around 20 groups before stopping.
I have followed the instructions in the Wiki and have access to the groups API. I have also tried regenerating the OAuth file.
Paul