Issue with Grade Calculation fetching marks from Meta-linked courses

Issue with Grade Calculation fetching marks from Meta-linked courses

by Anam Zehra -
Number of replies: 1

Hi Moodle Community,

I am facing an "Invalid Formula" and "Error" issue while trying to create a central certification course (Moodle 5.1.1+).

My Setup:

  • I have multiple separate courses (Photoshop, Illustrator, Canva, etc.).

  • I have created a "Main Certification Course" where I've added all these courses using the Course Meta-link enrolment method.

  • In the Main Course Gradebook, I created "Grade Items" for each software.

  • I assigned unique ID numbers to the quizzes in the original courses (e.g., ps1_q for Photoshop).

The Problem: When I go to Gradebook Setup > Edit Calculation in the Main Course and enter the formula =ps1_q, it says "Invalid Formula". In some cases, if it saves, the Grader Report just shows "Error" for all students instead of fetching their marks from the linked course.

Things I've checked:

  1. The ID numbers are correctly registered and visible in the "ID numbers" list below the calculation box.

  2. Students are enrolled in both the Main course and the sub-courses.

  3. I am using the correct syntax with double brackets and the equal sign.

Could anyone please guide me on why the marks are not being pulled from the meta-linked courses into the Grade Item calculation? Is there a specific setting in Site Administration that needs to be enabled for cross-course grade calculations?

Thank you!

Average of ratings: -
In reply to Anam Zehra

Issue with Grade Calculation fetching marks from Meta-linked courses

by Dave Foord -
Picture of Particularly helpful Moodlers
Hi Anam - I don't think it is possible to directly pull grade items from one course into another course (e.g. you cannot pull the grade from a Quiz in course A into course B).

What you can do (and I do this all the time) is use the subcourse activity (https://moodle.org/plugins/mod_subcourse) - this will allow you to pull the overall grade from the child course into the parent course. This does mean that you can only pull one grade per course, but if it is just a case of needing to know if they have passed the child course and with what grade, then make sure the grade calculation in the child course it correct, pull this into the parent course with the subcourse activity, and then do what you need to do in the parent course.