I already set up email account and check append to: CRM Lead, but nothing happen.
But if I set append to: todo, new communication appear, and new todo created.
Please support on that
This is a log
Traceback with variables (most recent call last):
File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 546, in receive
communication = mail.process()
self = <EmailAccount: Test Account>
exceptions = []
inbound_mails = [<frappe.email.receive.InboundMail object at 0x72ccfef1e000>]
mail = <frappe.email.receive.InboundMail object at 0x72ccfef1e000>
File "apps/frappe/frappe/email/receive.py", line 635, in process
return self._build_communication_doc()
self = <frappe.email.receive.InboundMail object at 0x72ccfef1e000>
communication = None
File "apps/frappe/frappe/email/receive.py", line 646, in _build_communication_doc
if self.reference_document():
self = <frappe.email.receive.InboundMail object at 0x72ccfef1e000>
data = {'subject': '🟣 Make it easy: Start with our pre-built automations', 'content': '\n<table border="0" style="background-color:#fcf3f8;"><tbody><tr><td><table border="0" style="background-color:#fcf3f8;"><tbody><tr><td><table border="0" style="background-color:#fcf3f8;border-radius:0;color:#000;width:610px;margin:0 auto;"><tbody><tr><td style="font-weight:400;text-align:left;padding-bottom:45px;padding-top:30px;vertical-align:top;border-top:0;border-right:0;border-bottom:0;border-left:0;"><table border="0" style=""><tbody><tr><td style="padding-left:20px;width:100%;padding-right:0;"><div style="line-height:10px;"><div style="max-width:122px;"><a href="https://e.customeriomail.com/e/c/eyJlbWFpbF9pZCI6ImRnU0Vfd1lCQU1ERG1RS193NWtDQVpiSlNqY1M2U2hPQkdZMmx4SGh6dz09IiwiaHJlZiI6Imh0dHBzOi8vd3d3Lm1ha2UuY29tL2VuL2xvZ2luP3V0bV9jYW1wYWlnbj0lNUIyJTVEK1RlbXBsYXRlcyslNUJnZW5lcmljJTVEXHUwMDI2dXRtX21lZGl1bT1lbWFpbFx1MDAyNnV0bV9zb3VyY2U9Y3VzdG9tZXIuaW8iLCJpbnRlcm5hbCI6Ijg0ZmYwNjk5MDE4ZmIwMDFjMGMzOTkwMiIsIm...
append_to = 'CRM Lead'
File "apps/frappe/frappe/email/receive.py", line 770, in reference_document
reference_document = self.match_record_by_subject_and_sender(self.email_account.append_to)
self = <frappe.email.receive.InboundMail object at 0x72ccfef1e000>
reference_document = ''
parent = ''
File "apps/frappe/frappe/email/receive.py", line 813, in match_record_by_subject_and_sender
name = frappe.db.get_value(self.email_account.append_to, filters=filters)
self = <frappe.email.receive.InboundMail object at 0x72ccfef1e000>
doctype = 'CRM Lead'
name = '🟣 Make it easy: Start with our pre-built automations'
email_fields = {'subject_field': None, 'sender_field': 'email', 'sender_name_field': 'first_name'}
record = None
subject = '🟣 Make it easy: Start with our pre-built automations'
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
File "apps/frappe/frappe/database/database.py", line 515, in get_value
result = self.get_values(
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x72ccfe3f03b0>
doctype = 'CRM Lead'
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
fieldname = 'name'
ignore = None
as_dict = False
debug = False
order_by = 'KEEP_DEFAULT_ORDERING'
cache = False
for_update = False
run = True
pluck = False
distinct = False
skip_locked = False
wait = True
File "apps/frappe/frappe/database/database.py", line 619, in get_values
out = self._get_values_from_table(
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x72ccfe3f03b0>
doctype = 'CRM Lead'
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
fieldname = 'name'
ignore = None
as_dict = False
debug = False
order_by = 'modified'
update = None
cache = False
for_update = False
run = True
pluck = False
distinct = False
limit = 1
skip_locked = False
wait = True
out = None
fields = ['name']
File "apps/frappe/frappe/database/database.py", line 877, in _get_values_from_table
query = frappe.qb.get_query(
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x72ccfe3f03b0>
fields = ['name']
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
doctype = 'CRM Lead'
as_dict = False
debug = False
order_by = 'modified'
update = None
for_update = False
skip_locked = False
wait = True
run = True
pluck = False
distinct = False
limit = 1
File "apps/frappe/frappe/query_builder/utils.py", line 61, in get_query
return Engine().get_query(*args, **kwargs)
args = ()
kwargs = {'table': 'CRM Lead', 'filters': {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}, 'order_by': 'modified', 'for_update': False, 'skip_locked': False, 'wait': True, 'fields': ['name'], 'distinct': False, 'limit': 1, 'validate_filters': True}
Engine = <class 'frappe.database.query.Engine'>
File "apps/frappe/frappe/database/query.py", line 76, in get_query
self.apply_filters(filters)
self = <frappe.database.query.Engine object at 0x72ccfd02c1d0>
table = 'CRM Lead'
fields = ['name']
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
order_by = 'modified'
group_by = None
limit = 1
offset = None
distinct = False
for_update = False
update = False
into = False
delete = False
validate_filters = True
skip_locked = False
wait = True
File "apps/frappe/frappe/database/query.py", line 129, in apply_filters
self.apply_dict_filters(filters)
self = <frappe.database.query.Engine object at 0x72ccfd02c1d0>
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
File "apps/frappe/frappe/database/query.py", line 158, in apply_dict_filters
self._apply_filter(field, value, operator)
self = <frappe.database.query.Engine object at 0x72ccfd02c1d0>
filters = {None: ('like', '%🟣 Make it easy: Start with our pre-built automations%'), 'creation': ('>', datetime.datetime(2025, 3, 14, 18, 0, 17, 596302)), 'email': 'info@make.com'}
field = None
value = '%🟣 Make it easy: Start with our pre-built automations%'
operator = 'like'
File "apps/frappe/frappe/database/query.py", line 219, in _apply_filter
self.query = self.query.where(operator_fn(_field, _value))
self = <frappe.database.query.Engine object at 0x72ccfd02c1d0>
field = None
value = '%🟣 Make it easy: Start with our pre-built automations%'
operator = 'like'
doctype = None
_field = None
_value = '%🟣 Make it easy: Start with our pre-built automations%'
_operator = 'like'
operator_fn = <function like at 0x72ccfda38cc0>
File "apps/frappe/frappe/database/operator_map.py", line 23, in like
return key.like(value)
key = ********
value = '%🟣 Make it easy: Start with our pre-built automations%'
builtins.AttributeError: 'NoneType' object has no attribute 'like'
Is it considered as a bug?
Anyone have solution?