Adding students to a course - "Error 400: Precondition check failed. - 400"

51 views
Skip to first unread message

Brian Dvorkin

unread,
Aug 5, 2021, 1:50:10 PM8/5/21
to GAM for Google Workspace
I am using a csv file to load students into courses.  The studentcourses.csv file is structured:

alias, studentemail
12345-2021, first...@email.com
23456-2021, first...@email.com
etc.

The gam command I am running is:
c:\gam>gam csv studentcourses.csv gam course ~alias add student ~studentemail

When it runs we get the error "ERROR: 400: Precondition check failed. - 400" for every line it processes.  We even get the same error when we try to add just a single student to a single course without using the csv/batch process.
We checked to ensure that the courses we are working with are ACTIVE.  We checked that we get the same error whether we are trying to add the student into a newly-created class vs. a pre-existing course (old).

Any idea as to what we are missing?

Brian Dvorkin

unread,
Aug 5, 2021, 2:00:30 PM8/5/21
to GAM for Google Workspace
Solved it.  We had the app switched OFF for the OU that we were working with.
Classroom needs to be ON in order for the students to be added into their courses.

I supposed I thought that was independent, but alas that is not true.

Reply all
Reply to author
Forward
0 new messages