ERPNext Conference 2019* Blog

Error in the Email Digest it does not sent - V12


Hello all
There is an error in the Email Digest it does not sent and I have this error log:

 {'method_name': 'erpnext.setup.doctype.email_digest.email_digest.send', 'log': <function log at 0x7fdb4dbae598>, 'retry': 0, 'is_async': True, 'user': 'Administrator', 'kwargs': {}, 'job_name': 'erpnext.setup.doctype.email_digest.email_digest.send', 'event': 'daily', 'method': <function send at 0x7fdb4d8c70d0>, 'site': ''}
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 99, in execute_job
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/", line 788, in send
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/", line 57, in send
    msg_for_this_recipient = self.get_msg_html()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/", line 102, in get_msg_html
    frappe.throw(_("No items to be received are overdue"))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 360, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red')
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 346, in msgprint
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 315, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.ValidationError: No items to be received are overdue

Installed Apps
ERPNext: v12.1.6 (version-12)
Frappe Framework: v12.0.16 (version-12)

Thanks in advance


What you might try


Thank you
I looked at the search but found nothing similar to this problem :

frappe.exceptions.ValidationError: No items to be received are overdue

Is it a bug or an error in a setting?


Yes probably a bug, please report this on github

Why throw that error here should be reviewed I think.


I think the problem is a little more complicated
Because I turned off (Purchase Orders Items Overdue) and i save and then pressed send now, it showed me that it sent the e-mail, but after a short time the entire system stopped and it was showing this message:

then i use sudo supervisorctl restart all to make it work again.

Thank you


Well yes to resolve any problem or say a prospective bug, the steps are first to replicate it in order to be able to define it?


that’s right
In the first case I select all the options as in the picture


Then when I press send and does not send email and I get this error: No items to be received are overdue

In the second case I remove the option as in the picture
I press send, then it sends the email and the system stops working with this message


I have put the problem on GitHub


Thanks for reporting this - one question, what is the name description of the NONE resource referred to here?

Not found : The resource you are looking for is not available

Please translate to English the name details here thanks!


The translation is :
User None does not exist
or User does not exist
Because the message appears as in the picture even if I use the program in the English version.

thank you