Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.2, 1.9.3
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Environment:Moodle 1.9.3+ (also reproduced in 1.9.2+). Windows Server 2003 SP2, MS SQL 2005, FreeTDS, PHP 5.2.6 (Non Thread Safe), FastCGI, IIS 6
-
Database:Microsoft SQL
-
URL:Site not available outside my company network.
-
Affected Branches:MOODLE_19_STABLE
Description
I tried to import quiz grades into Moodle via a .csv file when the grades are setup as percentages in the .csv file but I got a "Supplied grade is invalid" error.
First I created a test course and quiz with the maximum grade set to 50. Then I was successfully able to import grades into the Gradebook for that course AS NUMBERS using the following .csv format:
username,Quiz: QZ-TST
student1,41.7
student2,22.2
student3,34.1
In the above file student1 achieved 41.7 marks for the quiz (out of a possible 50 marks), etc.
Moodle imported the grades nicely and they displayed in the Gradebook.
But when I converted the results to percentages like this:
username,Quiz: QZ-TST
student1,83.4 %
student2,44.4 %
student3,68.2 %
and imported the .csv file, Moodle complained that the "Supplied grade is invalid" and I got the following error in the top left corner just below the 'Choose an action' list (my debugging level is set to quite high):
t0 is 6
grade is 83.4 %
What does "t0 is 6" mean? And why is the "Supplied grade invalid"?
If Moodle does not support grade import as percentages then this error message should be more specific, e.g. "Grade import as percentages is not supported".
Is it possible to import grades into the Gradebook as percentages? I haven't seen anything in Moodle Docs that says you CAN'T. The instructions for importing and exporting grades on http://docs.moodle.org/en/Grade_import and http://docs.moodle.org/en/Grade_export are quite vague and don't specifically explain why the "Supplied grade is invalid" or even that you can or can't import grades as percentages. See http://docs.moodle.org/en/Talk:Grade_import for more details about the documentation issue.
I get the "Supplied grade is invalid" error in both Moodle 1.9.2+ and 1.9.3+ (on IIS 6, PHP 5.2.6 and MSSQL 2005 with FreeTDS).
Thanks for reporting this issue.
We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.
If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.
Michael d;
lqjjLKA0p6