From MoodleDocs

This error is obtained if you attempt a quiz with a maximum grade of more than zero containing only questions with a grade of zero.

The problem can be fixed by editing the quiz and changing either the maximum grade and/or the question grades.

See also

  • Quiz FAQ for the answer to the question 'Can I have a quiz that is not graded?'