Frappe Exception: ValidationError in Asset Doctype (after export of customizations)

Since the second last update I’ve encountered an annoying issue. When I do an upgrade (ERPNext & Frappe) using bench update the update goes thrue until it has gets to Updating customizations for Asset

then it throws an error:

Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 104, in <module> main() File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 19, in main click.Group(commands=commands)(prog_name='bench') File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/home/pedro_vde/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/commands/site.py", line 309, in migrate migrate( File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/migrate.py", line 77, in migrate sync_customizations() File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/modules/utils.py", line 97, in sync_customizations sync_customizations_for_doctype(data, folder) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/modules/utils.py", line 153, in sync_customizations_for_doctype validate_fields_for_doctype(doctype) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 767, in validate_fields_for_doctype validate_links_table_fieldnames(meta) File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 763, in validate_links_table_fieldnames frappe.throw(message, frappe.ValidationError, _("Invalid Table Fieldname")) File "/home/pedro_vde/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/pedro_vde/frappe-bench/apps/frappe/frappe/__init__.py", line 423, in msgprint _raise_exception() File "/home/pedro_vde/frappe-bench/apps/frappe/frappe/__init__.py", line 378, in _raise_exception raise raise_exception(msg) frappe.exceptions.ValidationError: Document Links Row #2: Could not find field <b>asset_name</b> in <b>Asset</b> DocType

I have other customizations in Address, Contact, Holiday List, Sales Invoice Item, Supplier and Price List, and they pass with no error.

After this error the site stalls at an ‘This site is updating, come back shortly’ message, but nothing is actually happening behind this point.

I can get the site working and behaving normally when I do a bench update --requirements

On the first sight there is noting going wrong in the Assets page, and all customizations are shown.

Any idea how to solve this?