Try ERPNext Buy Support Partners Foundation

Error during assessment plan creation

Hi i have received the following error during assessment plan saving. I have done a browser inspect while the error popped up:

Failed to load resource: the server responded with a status of 417 (EXPECTATION FAILED)
request.js:355 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 272, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 295, in _save
self.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 460, in _validate
self._validate_mandatory()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 740, in _validate_mandatory
name=self.name))
MandatoryError: [Assessment Plan, EDU-ASP-2020-00001]: course

request.js:355 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1042, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 272, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 295, in _save
self.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 460, in _validate
self._validate_mandatory()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 740, in _validate_mandatory
name=self.name))
MandatoryError: [Assessment Plan, EDU-ASP-2020-00001]: course

Find attached screenshot:

Clearly you can see the course field has an input already. What could be the issue?

@ben, When you are creating Assessment Plan, then you have to create Student Group , On Student Group form when you select Group Based On Course then the course field will get display and you need to create a Course for that with default Grading Scale. If you will do as mentioned above then you won’t get the error “MandatoryError: [Assessment Plan, EDU-ASP-2020-00001]: course”

I have gone through the same flow and have created an Assessment Plan which is in Draft state. For reference please find the attached screenshot below.

What if my student group is not based on course? For my case, the student group is based on batch.

@radhika.g

I have managed to create the assessment plan for a student group based on batch using a rather uncouth way. I had to switch my branch as a developer then on assessment plan doctype i made the course field as “Not Mandatory”.

I got it sorted. But if there is any other better way , i will be glad to hear your suggestions.