Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues during installation #62

Open
Sw00shy opened this issue Jan 15, 2025 · 1 comment
Open

Issues during installation #62

Sw00shy opened this issue Jan 15, 2025 · 1 comment

Comments

@Sw00shy
Copy link

Sw00shy commented Jan 15, 2025

Hi, i try to install the eu_einvoice app but i receive the following error. Can you help?

installation:

bench get-app https://github.com/alyf-de/eu_einvoice --branch version-15
bench install-app eu_einvoice

output:

App erpnext already installed
Installing eu_einvoice...
An error occurred while installing eu_einvoice: Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24
....
File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1649, in validate_fields
check_link_table_options(meta.get("name"), d)
meta = <Meta: Purchase Invoice>
check_illegal_characters = <function validate_fields..check_illegal_characters at 0x7f0b407e2200>
check_invalid_fieldnames = <function validate_fields..check_invalid_fieldnames at 0x7f0b401b76a0>
check_unique_fieldname = <function validate_fields..check_unique_fieldname at 0x7f0b401b7380>
check_fieldname_length = <function validate_fields..check_fieldname_length at 0x7f0b401b77e0>
check_illegal_mandatory = <function validate_fields..check_illegal_mandatory at 0x7f0b401b7740>
check_link_table_options = <function validate_fields..check_link_table_options at 0x7f0b401b74c0>
check_hidden_and_mandatory = <function validate_fields..check_hidden_and_mandatory at 0x7f0b401b72e0>
check_width = <function validate_fields..check_width at 0x7f0b401b71a0>
check_in_list_view = <function validate_fields..check_in_list_view at 0x7f0b3fe30c20>
check_in_global_search = <function validate_fields..check_in_global_search at 0x7f0b3fe30cc0>
check_dynamic_link_options = <function validate_fields..check_dynamic_link_options at 0x7f0b3fe30d60>
check_illegal_default = <function validate_fields..check_illegal_default at 0x7f0b3fe30e00>
check_precision = <function validate_fields..check_precision at 0x7f0b3fe30ea0>
check_unique_and_text = <function validate_fields..check_unique_and_text at 0x7f0b3fe30f40>
check_fold = <function validate_fields..check_fold at 0x7f0b3fe30fe0>
check_search_fields = <function validate_fields..check_search_fields at 0x7f0b3fe31080>
check_title_field = <function validate_fields..check_title_field at 0x7f0b3fe31120>
check_image_field = <function validate_fields..check_image_field at 0x7f0b3fe311c0>
check_is_published_field = <function validate_fields..check_is_published_field at 0x7f0b3fe31260>
check_website_search_field = <function validate_fields..check_website_search_field at 0x7f0b3fe31300>
check_timeline_field = <function validate_fields..check_timeline_field at 0x7f0b3fe313a0>
check_sort_field = <function validate_fields..check_sort_field at 0x7f0b3fe31440>
check_illegal_depends_on_conditions = <function validate_fields..check_illegal_depends_on_conditions at 0x7f0b3fe314e0>
check_table_multiselect_option = <function validate_fields..check_table_multiselect_option at 0x7f0b3fe31580>
scrub_options_in_select = <function validate_fields..scrub_options_in_select at 0x7f0b3fe31620>
validate_fetch_from = <function validate_fields..validate_fetch_from at 0x7f0b3fe316c0>
validate_data_field_type = <function validate_fields..validate_data_field_type at 0x7f0b3fe31760>
check_child_table_option = <function validate_fields..check_child_table_option at 0x7f0b3fe31800>
check_max_height = <function validate_fields..check_max_height at 0x7f0b3fe318a0>
check_no_of_ratings = <function validate_fields..check_no_of_ratings at 0x7f0b3fe31940>
d = <LinkDocField: e_invoice_import parent=Purchase Invoice>
fieldname_list = ['title', 'naming_series', 'supplier', 'supplier_name', 'tax_id', 'company', 'column_break_6', 'posting_date', 'posting_time', 'set_posting_time', 'due_date', 'column_break1', 'is_paid', 'is_return', 'return_against', 'update_outstanding_for_self', 'update_billed_amount_in_purchase_order', 'update_billed_amount_in_purchase_receipt', 'apply_tds', 'tax_withholding_category', 'amended_from', 'supplier_invoice_details', 'bill_no', 'e_invoice_import', 'column_break_15', 'bill_date', 'accounting_dimensions_section', 'cost_center', 'dimension_col_break', 'project', 'currency_and_price_list', 'currency', 'conversion_rate', 'use_transaction_date_exchange_rate', 'column_break2', 'buying_price_list', 'price_list_currency', 'plc_conversion_rate', 'ignore_pricing_rule', 'sec_warehouse', 'scan_barcode', 'col_break_warehouse', 'update_stock', 'set_warehouse', 'set_from_warehouse', 'is_subcontracted', 'rejected_warehouse', 'supplier_warehouse', 'items_section', 'items', 'section_break_26', 'total_qty'...
fields = [<DataDocField: title parent=Purchase Invoice>, <SelectDocField: naming_series parent=Purchase Invoice>, <LinkDocField: supplier parent=Purchase Invoice>, <DataDocField: supplier_name parent=Purchase Invoice>, , <LinkDocField: company parent=Purchase Invoice>, , <DateDocField: posting_date parent=Purchase Invoice>, <TimeDocField: posting_time parent=Purchase Invoice>, <CheckDocField: set_posting_time parent=Purchase Invoice>, <DateDocField: due_date parent=Purchase Invoice>, , <CheckDocField: is_paid parent=Purchase Invoice>, <CheckDocField: is_return parent=Purchase Invoice>, <LinkDocField: return_against parent=Purchase Invoice>, <CheckDocField: update_outstanding_for_self parent=Purchase Invoice>, <CheckDocField: update_billed_amount_in_purchase_order parent=Purchase Invoice>, <CheckDocField: update_billed_amoun...
not_allowed_in_list_view = ['Section Break', 'Column Break', 'Tab Break', 'HTML', 'Table', 'Table MultiSelect', 'Button', 'Image', 'Fold', 'Heading', 'Attach Image']
File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1276, in check_link_table_options
frappe.throw(
docname = 'Purchase Invoice'
d = <LinkDocField: e_invoice_import parent=Purchase Invoice>
options = None
File "apps/frappe/frappe/init.py", line 603, in throw
msgprint(
msg = 'Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24'
exc = <class 'frappe.core.doctype.doctype.doctype.WrongOptionsDoctypeLinkError'>
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File "apps/frappe/frappe/init.py", line 568, in msgprint
_raise_exception()
msg = 'Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24'
title = None
raise_exception = <class 'frappe.core.doctype.doctype.doctype.WrongOptionsDoctypeLinkError'>
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module 'sys' (built-in)>
_raise_exception = <function msgprint.._raise_exception at 0x7f0b3fe319e0>
inspect = <module 'inspect' from '/usr/lib/python3.11/inspect.py'>
out = {'message': 'Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '8a401c0fc9726084dcc5df6c9f04bc6432d8c2acbe3201701165ac15'}
File "apps/frappe/frappe/init.py", line 519, in _raise_exception
raise exc
exc = WrongOptionsDoctypeLinkError('Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24')
inspect = <module 'inspect' from '/usr/lib/python3.11/inspect.py'>
msg = 'Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24'
out = {'message': 'Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '8a401c0fc9726084dcc5df6c9f04bc6432d8c2acbe3201701165ac15'}
raise_exception = <class 'frappe.core.doctype.doctype.doctype.WrongOptionsDoctypeLinkError'>
frappe.core.doctype.doctype.doctype.WrongOptionsDoctypeLinkError: Purchase Invoice: Options must be a valid DocType for field E Invoice Import in row 24

@derfladi
Copy link

I had the same issue, but after a

bench migrate
bench --site erpnext uninstall-app eu_einvoice

the next installation worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants