Administration: Assignment Convert Submissions

Administration: Assignment Convert Submissions

by Thom Rawson -
Number of replies: 4
Picture of Moodle HQ Picture of Particularly helpful Moodlers

Currently on Moodle 4.1 and we have document conversion "unoconv" enabled to allow for PDF markup during the grading process. For the most part it is working pretty well, however we have occasional submissions that cannot convert.

The "adhoc" task logs give us a report of a failed conversion, but I can't figure out from the log which assignment has the failure. I can find the USER from the ID, but many users are in multiple classes with multiple assignments. Its needle-in-haystack hunting.

Here is an example log error:

Execute adhoc task: assignfeedback_editpdf\task\convert_submission
Adhoc task id: 217334
Adhoc task custom data: {"submissionid":"246000","submissionattempt":"0"}
... started 09:11:12. Current memory use 35.9 MB.
Debugging increased temporarily due to faildelay of 86400
Converting submission for user id 3244
... used 43 dbqueries
... used 0.92600202560425 seconds
Adhoc task failed: assignfeedback_editpdf\task\convert_submission,error/Could not find readonly pages for grade 227177 Backtrace: * line 105 of /mod/assign/feedback/editpdf/classes/task/convert_submission.php: call to assignfeedback_editpdf\document_services::get_page_images_for_attempt()
* line 359 of /lib/cronlib.php: call to assignfeedback_editpdf\task\convert_submission->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()


Is there any way to easily track down what exactly the student is submitting so I can address the issue? In the past, some image submissions in HEIC format were causing issues, but again I don't know precisely what submission this is referring to.

Any advice on how to proceed is greatly appreciated.

Average of ratings: -
In reply to Thom Rawson

Re: Administration: Assignment Convert Submissions

by Davo Smith -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
The "submissionid" in the error message will be the id of the relevant record in the database table mdl_ assign_submission.

From that table, you can get the "userid" and "assignment" values. The userid will directly give you the user and "assignment" can be looked up in table mdl_assign, to give you the "course" value - the id of the course in question.

If you need the specific activity, you would need to look this up in the mdl_course_modules table, which is a bit more fiddly - for more details, see: https://docs.moodle.org/dev/Course_module
In reply to Thom Rawson

Re: Administration: Assignment Convert Submissions

by Michael Hughes -
Picture of Core developers Picture of Plugin developers
We've similarly had issues with unoconv and getting information *out* about it has been difficult. I definitely think that there are improvements in this specific area for admins to find out what's happening.

The steps that Davo outlines, we've done numerous times, and it would be "better" (IMHO) that some of this basic information to tracing through what is happening to be exposed without needing to know all of that stuff. Being able to look at the task result and be able to go directly back to the course, activity and user that the conversion related to would be a really big help.