Using the \setlength command doesn't work, since its first argument looks like a command with the wrong number of arguments. Use an alternative form instead, e.g.
\parindent 0pt
\setlength{\parindent}{0pt}