ERROR on bench migrate on ERPNext 13: 'In List View' not allowed for type Attach Image in row 17

I am trying to do bench --site mysitename migrate on ERPNext 13, but it fails with the error
“frappe.exceptions.ValidationError: ‘In List View’ not allowed for type Attach Image in row 17”, I have made customizations to many doctypes, but none of these had an Attach Image field in row 17 (unless I forgot to record a change in one of the doctypes). Is there a way to identify the doctype causing the issue, or solve this issue in any other way?

Traceback (most recent call last):

File ”/usr/lib/pgthon3.8/“, line 194, in _run_module_as_main

return _run_code(code, main_globals, None,

File ”/usr/lib/python3.8/”, line 87, in _run_code

exec(code, run_globals)

File ”/home/adaaone/frappe-bench/apps/frappe/frappe/utils/”, line 104, in


File ”/home/adaaone/frappe-bench/apps/frappe/frappe/utils/”, line 19, in main


File ”/home/adaaone/frappe-bench/env/lib/python3.8/site-packages/click/“, line 829, in call

return self.main(*args, **kwargs)

File ”/home/adaaone/frappe-bench/env/lib/python3.8/site-packages/click/”, line 782, in main

rv = self.invoke(ctx)

File ”/home/adaaone/frappe—bench/env/lib/python3.8/site-packages/click/", line 1259, in invoke

return _process_result(sub_ctx.command.inuoke(sub_ctx))

File "/home/adaaone/frappe-bench/env/lib/python3.8/8ite-packages/click/”, line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))

File ”/home/adaaone/frappe-bench/env/lib/python3.8/site-packages/click/”, line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)

File ”/home/adaaone/frappe-bench/env/lib/python3.8/site-packages/click/", line 610, in invoke

return callback(*args, *kwargs)

File ”/home/adaaone/frappe-bench/env/lib/pgthon3.8/site-packages/click/", line 21, in


return f(get_current_context(), *args, **kwargs)

File ”/home/adaaone/frappe-bench/apps/frappe/frappe/commands/”, line 27, in _func

Pet : f(frappe._dict(ctx.0bj), *args, ** kwargs)

File ”/home/adaaone/frappe-bench/apps/frappe/frappe/commands/”, line 309, in migrate


File ”/home/adaaone/frappe-bench/apps/frappe/frappe/”, line 77, in migrate


File ”/home/adaaone/frappe—bench/apps/frappe/frappe/modules/ut113.99”, line 97, in sync_customizations

sync_customizations_for_doctype(data, folder)

File "/home/adaaone/frappe-bench/apps/frappe/frappe/modules/”, line 153, in sgnc_customizations_for_doctype


File ”/home/adaaone/frappe-bench/apps/frappe/frappe/core/doctype/doctype/”, line 768, in



File ”/home/adaaone/frappe-bench/apps/frappe/frappe/core/doctype/doctype/”, line 1070, in validate_fields

check_in_list_view(meta.get('istable‘), d)

File ”/home/adaaone/frappe-bench/apps/frappe/frappe/core/doctgpe/doctgpe/”, line 843, in


frappe.throw(_("‘{0}’ not allowed for type {1} in row {2}”).format(property_label, d.fieldtype,


File “/home/adaaone/frappe-bench/apps/frappe/frappe/", line 444, in throw

msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable,

wide=wide, as_list=as_list)

File ”/home/adaaone/frappe-bench/apps/frappe/frappe/”, line 423, in msgprint


File ”/home/adaaone/frappe-bench/apps/frappe/frappe/”, line 378, in _raise_exception

frappe.exceptions.ValidationError: ‘In List View’ not allowed for type Attach Image in row 17



Go to Doctype and apply these two filters to find out:


Divyesh Mangroliya

Thank you Divyesh,
Unfortunately, I did not find any results when applying those two filters, see the screenshot below:

Hi @Omar-Abdullah,

If you applied the custom field then does not show in doctype.

That for, please check in the custom field doctype and filter out it.

Thank You!

I will try it in seconds, thanks @NCP

Unfortunately @NCP, there are no results too: