KeyError: 'asset_link' in auto_make_assets

Form/Purchase Invoice/ACC-PINV-2022-00111-1

### Trackeback

Traceback (most recent call last):
File "apps/frappe/frappe/desk/form/save.py", line 23, in savedocs
doc.submit()
File "apps/frappe/frappe/model/document.py", line 1018, in submit
return self._submit()
File "apps/frappe/frappe/model/document.py", line 1007, in _submit
return self.save()
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 364, in _save
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1088, in run_post_save_methods
self.run_method("on_submit")
File "apps/frappe/frappe/model/document.py", line 941, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1260, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1242, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 938, in fn
return method_object(*args, **kwargs)
File "apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 490, in on_submit
super(PurchaseInvoice, self).on_submit()
File "apps/erpnext/erpnext/controllers/buying_controller.py", line 596, in on_submit
self.process_fixed_asset()
File "apps/erpnext/erpnext/controllers/buying_controller.py", line 639, in process_fixed_asset
self.auto_make_assets(asset_items)
File "apps/erpnext/erpnext/controllers/buying_controller.py", line 670, in auto_make_assets
_("Asset{} {assets_link} created for {}").format(
KeyError: 'asset_link'
1 Like

I have same problem, Did you find solution to fix it

1 Like

I have the same problem too! Was there any solution to this problem yet?

1 Like

i solve this by translate the broplem message … when i use the english language it pass … so i translat the message to solve it