C3 W2 - Lab 2 - Error Messages in Glue Job Are Too Vague

How is someone supposed to debug the Glue Job failures with vague errors like TypeError: 'Series' object cannot be interpreted as an integer?

There’s no stack trace indicating what line is failing, and there’s no variable called ‘Series’ in the code. We should be allowed to see the log output for the job to solve these kinds of problems. But when I try to view the logs, it says I’m not authorized to see them.

Can anyone help me understand what could be causing this?

@yy55pl Hi!
The error suggests that a Pandas Series is being passed to an operation that expects a scalar value. I’d recommend reviewing 4.1.3 Enforce schema and checking for any operations applied to an entire DataFrame/Series instead of source_pd[field_name].