Support emails not being Appended to Issues or showing in Inbox

When I checked unhandled emails the following shows when I open the message:

Traceback (most recent call last): File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 80, in render_template return get_jenv().from_string(template).render(context) File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 1008, in render return self.environment.handle_exception(exc_info, True) File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 780, in handle_exception reraise(exc_type, exc_value, tb) File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/_compat.py”, line 37, in reraise raise value.with_traceback(tb) File “”, line 1, in top-level template code File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/sandbox.py”, line 387, in getattr value = getattr(obj, attribute) jinja2.exceptions.UndefinedError: ‘issue’ is undefined During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/notification/notification.py”, line 334, in evaluate_alert alert.send(doc) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/notification/notification.py”, line 123, in send self.send_an_email(doc, context) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/notification/notification.py”, line 155, in send_an_email subject = frappe.render_template(self.subject, context) File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 82, in render_template throw(title=“Jinja Template Error”, msg="

{template}

{tb}

".format(template=template, tb=get_traceback())) File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 377, in throw msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable) File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 356, in msgprint _raise_exception() File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 316, in _raise_exception raise raise_exception(msg) frappe.exceptions.ValidationError:

{{issue.subject}}

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 80, in render_template
return get_jenv().from_string(template).render(context)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/_compat.py”, line 37, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/sandbox.py”, line 387, in getattr
value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: ‘issue’ is undefined

During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 312, in receive communication = self.insert_communication(msg, args=args) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 425, in insert_communication self.set_thread(communication, email) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 476, in set_thread parent = self.create_new_parent(communication, email) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 552, in create_new_parent parent.insert(ignore_permissions=True) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 254, in insert self.run_method(“after_insert”) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 799, in run_method self.run_notifications(method) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 848, in run_notifications _evaluate_alert(alert) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 831, in _evaluate_alert evaluate_alert(self, alert.name, alert.event) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/notification/notification.py”, line 338, in evaluate_alert error_log = frappe.log_error(message=frappe.get_traceback(), title=str(e)) File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 1534, in log_error method=title)).insert(ignore_permissions=True) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in insert self._validate() File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 463, in _validate self._validate_length() File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 605, in _validate_length self.throw_length_exceeded_error(df, max_length, value) File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 621, in throw_length_exceeded_error .format(reference, (df.label), max_length, value), frappe.CharacterLengthExceededError, title= (‘Value too big’)) File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 377, in throw msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable) File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 356, in msgprint _raise_exception() File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 316, in _raise_exception raise raise_exception(msg) frappe.exceptions.CharacterLengthExceededError: Error Log 545cae275c: ‘Title’ (

{{issue.subject}}

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 80, in render_template
return get_jenv().from_string(template).render(context)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/_compat.py”, line 37, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/jinja2/sandbox.py”, line 387, in getattr
value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: ‘issue’ is undefined

) will get truncated, as max characters allowed is 140

cancel

Solved:

There should be better error checking

You have to still change the issue.subject to doc.subject here.

Thank you very much

Is there a more detailed document regarding assignment rules and the variables and Python expressions that can be used.