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/runpy.pg“, line 194, in _run_module_as_main

return _run_code(code, main_globals, None,

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

exec(code, run_globals)

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

main()

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

click.Group(commands=commands)(prog_name=‘bench’)

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

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

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

rv = self.invoke(ctx)

File ”/home/adaaone/frappe—bench/env/lib/python3.8/site-packages/click/core.py", 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/core.py”, 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/core.py”, line 1066, in invoke

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

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

return callback(*args, *kwargs)

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

new_func

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

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

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

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

migrate(

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

sync_customizations()

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/utils.py”, line 153, in sgnc_customizations_for_doctype

validate_fields_for_doctype(doctype)

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

validate_fields_for_doctype

validate_fields(meta)

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

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

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

check_in_list_view

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

d.idx))

File “/home/adaaone/frappe-bench/apps/frappe/frappe/init.py", 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/init.py”, line 423, in msgprint

_raise_exception()

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

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

)

Hi,

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

Thanks,

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: