ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Error restoring data from Erpnext.com to Frappe Cloud

Hello.
I’ve been using ERPNEXT for almost 5 years and now wish to expand using in our manufacturing. Hence want to move from a free version to FRAPPE CLOUD hosted account.

everytime I uploaded a backup from the current erpnext.com hosted website to Frappecloud.com .I get the below error

This error occurs after restore during the Migration process.

**Please help in resolving this issue ? **
I really want to stay on the platform but ERPNEXT.COM is too expensive and I cannot migrate to Frappecloud.com…so kind of stuck.

Wrote to ERPNEXT.com support and Frappecloud.com support.

NO HELP…from either of the teams.

Blockquote
Migrating windmill.frappe.cloud
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype_action’, force=True) #2019-09-23 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.269s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype_link’, force=True) #2020-10-17 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.181s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘module_def’) #2020-08-28 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.287s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘has_role’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.031s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘server_script’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.287s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘report_column’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.243s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘report_filter’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.219s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘report’) #2020-08-25 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.334s
Executing frappe.patches.v10_0.reload_countries_and_currencies # 14-10-2020 in windmill.frappe.cloud (_d15179df14095619)
Updating country info : [========================================] 100%
Success: Done in 0.465s
Executing frappe.patches.v12_0.change_existing_dashboard_chart_filters in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.102s
Executing execute:frappe.delete_doc(“Test Runner”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.022s
Executing execute:frappe.db.set_default(‘desktop:home_page’, ‘workspace’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.084s
Executing frappe.patches.v13_0.website_theme_custom_scss in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.574s
Executing frappe.patches.v13_0.set_existing_dashboard_charts_as_public in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.476s
Executing frappe.patches.v13_0.set_path_for_homepage_in_web_page_view in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.245s
Executing frappe.patches.v13_0.migrate_translation_column_data in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.247s
Executing frappe.patches.v13_0.set_read_times in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.337s
Executing frappe.patches.v13_0.remove_web_view in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.025s
Executing frappe.patches.v13_0.site_wise_logging in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.023s
Executing frappe.patches.v13_0.set_unique_for_page_view in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.223s
Executing frappe.patches.v13_0.remove_tailwind_from_page_builder in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.2s
Executing frappe.patches.v13_0.rename_onboarding in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.023s
Executing frappe.patches.v13_0.email_unsubscribe in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.102s
Executing execute:frappe.delete_doc(“Web Template”, “Section with Left Image”, force=1) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.024s
Executing execute:frappe.delete_doc(“DocType”, “Onboarding Slide”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.025s
Executing execute:frappe.delete_doc(“DocType”, “Onboarding Slide Field”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.042s
Executing execute:frappe.delete_doc(“DocType”, “Onboarding Slide Help Link”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.031s
Executing frappe.patches.v13_0.update_date_filters_in_user_settings in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.169s
Executing frappe.patches.v13_0.update_duration_options in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.002s
Executing frappe.patches.v13_0.replace_old_data_import # 2020-06-24 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.08s
Executing frappe.patches.v13_0.create_custom_dashboards_cards_and_charts in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.04s
Executing frappe.patches.v13_0.rename_is_custom_field_in_dashboard_chart in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.051s
Executing frappe.patches.v13_0.add_standard_navbar_items in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.5s
Executing frappe.patches.v13_0.generate_theme_files_in_public_folder in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 2.017s
Executing frappe.patches.v13_0.increase_password_length in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.044s
Executing frappe.patches.v13_0.add_toggle_width_in_navbar_settings in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.033s
Executing frappe.patches.v13_0.rename_notification_fields in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.626s
Executing frappe.patches.v13_0.remove_duplicate_navbar_items in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.035s
Executing frappe.patches.v12_0.set_default_password_reset_limit in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.471s
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype’, force=True) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.565s
Executing frappe.patches.v13_0.set_route_for_blog_category in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.97s
Executing frappe.patches.v13_0.enable_custom_script in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.241s
Executing frappe.patches.v13_0.update_newsletter_content_type in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.285s
Executing execute:frappe.db.set_value(‘Website Settings’, ‘Website Settings’, {‘navbar_template’: ‘Standard Navbar’, ‘footer_template’: ‘Standard Footer’}) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.032s
Executing frappe.patches.v13_0.delete_event_producer_and_consumer_keys in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.025s
Executing frappe.patches.v13_0.web_template_set_module #2020-10-05 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.399s
Executing frappe.patches.v13_0.remove_custom_link in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.049s
Executing execute:frappe.delete_doc(“DocType”, “Footer Item”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.287s
Executing frappe.patches.v13_0.replace_field_target_with_open_in_new_tab in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.265s
Executing frappe.patches.v13_0.delete_package_publish_tool in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.027s
Executing erpnext.patches.v12_0.update_is_cancelled_field in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.508s
Executing execute:frappe.reload_doc(“accounts”, “doctype”, “POS Payment Method”) #2020-05-28 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.195s
Executing execute:frappe.reload_doc(“HR”, “doctype”, “HR Settings”) #2020-01-16 #2020-07-24 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.318s
Executing execute:frappe.reload_doc(“Payroll”, “doctype”, “salary_slip”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.76s
Executing execute:frappe.delete_doc_if_exists(“Report”, “Loan Repayment”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 2.174s
Executing erpnext.patches.v12_0.set_automatically_process_deferred_accounting_in_accounts_settings in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.371s
Executing erpnext.patches.v12_0.set_production_capacity_in_workstation in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.343s
Executing erpnext.patches.v12_0.set_employee_preferred_emails in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.127s
Executing erpnext.patches.v12_0.set_against_blanket_order_in_sales_and_purchase_order in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.449s
Executing erpnext.patches.v12_0.set_cost_center_in_child_table_of_expense_claim in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.292s
Executing erpnext.patches.v12_0.add_eway_bill_in_delivery_note in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.907s
Executing erpnext.patches.v12_0.set_lead_title_field in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.477s
Executing erpnext.patches.v12_0.set_published_in_hub_tracked_item in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.226s
Executing erpnext.patches.v12_0.set_job_offer_applicant_email in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.03s
Executing erpnext.patches.v12_0.move_bank_account_swift_number_to_bank in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.065s
Executing erpnext.patches.v12_0.rename_bank_reconciliation in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.055s
Executing erpnext.patches.v12_0.rename_account_type_doctype in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 2.297s
Executing erpnext.patches.v12_0.update_healthcare_refactored_changes in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 3.946s
Executing erpnext.patches.v12_0.set_total_batch_quantity in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.343s
Executing erpnext.patches.v12_0.set_default_payroll_based_on in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.029s
Executing erpnext.patches.v12_0.fix_quotation_expired_status in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.046s
Executing erpnext.patches.v12_0.update_appointment_reminder_scheduler_entry in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.03s
Executing erpnext.patches.v12_0.rename_pos_closing_doctype in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 2.405s
Executing erpnext.patches.v13_0.replace_pos_payment_mode_table #2020-12-29 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.112s
Executing erpnext.patches.v13_0.patch_to_fix_reverse_linking_in_additional_salary_encashment_and_incentive in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.187s
Executing execute:frappe.rename_doc(“Desk Page”, “Getting Started”, “Home”, force=True) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.024s
Executing erpnext.patches.v12_0.set_valid_till_date_in_supplier_quotation in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.754s
Executing erpnext.patches.v13_0.update_old_loans in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 2.242s
Executing execute:frappe.reload_doctype(‘Dashboard’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.265s
Executing execute:frappe.reload_doc(‘desk’, ‘doctype’, ‘number_card_link’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.187s
Executing execute:frappe.delete_doc_if_exists(‘Dashboard’, ‘Accounts’) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.227s
Executing erpnext.patches.v13_0.update_actual_start_and_end_date_in_wo in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.207s
Executing erpnext.patches.v13_0.set_company_field_in_healthcare_doctypes #2020-05-25 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.296s
Executing erpnext.patches.v12_0.update_bom_in_so_mr in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 21.322s
Executing execute:frappe.delete_doc(“Report”, “Department Analytics”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.239s
Executing execute:frappe.rename_doc(“Desk Page”, “Loan Management”, “Loan”, force=True) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.028s
Executing erpnext.patches.v13_0.replace_pos_page_with_point_of_sale_page in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.637s
Executing erpnext.patches.v13_0.delete_old_purchase_reports in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.875s
Executing erpnext.patches.v13_0.update_subscription in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.006s
Executing erpnext.patches.v13_0.update_sla_enhancements in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 1.0s
Executing erpnext.patches.v12_0.update_address_template_for_india in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.029s
Executing erpnext.patches.v13_0.update_deferred_settings in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.615s
Executing erpnext.patches.v13_0.delete_old_sales_reports in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.415s
Executing execute:frappe.delete_doc_if_exists(“DocType”, “Bank Reconciliation”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.24s
Executing erpnext.patches.v13_0.move_doctype_reports_and_notification_from_hr_to_payroll #22-06-2020 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 4.51s
Executing erpnext.patches.v13_0.move_payroll_setting_separately_from_hr_settings #22-06-2020 in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.042s
Executing execute:frappe.reload_doc(“regional”, “doctype”, “e_invoice_settings”) in windmill.frappe.cloud (_d15179df14095619)
Success: Done in 0.023s
Executing erpnext.patches.v13_0.check_is_income_tax_component #22-06-2020 in windmill.frappe.cloud (_d15179df14095619)
Traceback (most recent call last):
File “/usr/lib/python3.7/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.7/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 26, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 296, in migrate
skip_search_index=skip_search_index
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 67, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 41, in run_all
run_patch(patch)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 30, in run_patch
if not run_single(patchmodule = patch):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 91, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v13_0/check_is_income_tax_component.py”, line 28, in execute
setup(patch=True)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py”, line 14, in setup
setup_company_independent_fixtures()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py”, line 20, in setup_company_independent_fixtures
make_custom_fields()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py”, line 592, in make_custom_fields
create_custom_fields(custom_fields, update=update)
File “/home/frappe/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 158, in create_custom_fields
custom_field.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 285, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 337, in _save
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 983, in run_post_save_methods
self.run_method(“on_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 848, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1137, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1120, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 842, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 69, in on_update
validate_fields_for_doctype(self.dt)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 697, in validate_fields_for_doctype
validate_fields(frappe.get_meta(doctype, cached=False))
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 1008, in validate_fields
validate_data_field_type(d)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 962, in validate_data_field_type
frappe.msgprint(text_str + df_options_str, title=“Invalid Data Field”, raise_exception=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 390, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 346, in _raise_exception
raise ValidationError(msg)
frappe.exceptions.ValidationError: HSN/SAC is an invalid Data field.

Only Options allowed for Data field are:

  • Email
  • Name
  • Phone

Resolved the Issue…

Problem occurred due to a very basic error during Frappecloud Site setup…

VERSION DIFFERENCE…
Frappe cloud Frappe version = 13
erpnext.com version = 12

This was causing the issue.

Checked the erpnext version from About/Help…12.17.00

Deleted the Frappecloud site…and installed again with Version 12.0 of frappe…

MIGRATION was done with NO ERRORS…

The simplest of things cause the most problems.
Happy that I am staying on ERPNEXT…

For Order Type Labeled frield failed

frappe.get_all("Custom Field", fields=["name","options"], filters=[["Label","=","Order Type"]])

[{'name': 'Sales Invoice-order_type', 'options': 'Sales\nAmazon\nSamples'}]

Check your fields and update the options to valid options or None

ORM, bench console was not able to set it. Finally used following query:

update `tabCustom Field` SET options = NULL  where name = 'Sales Invoice-order_type';

EDIT:

New Error:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 101, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 301, in migrate
    skip_search_index=skip_search_index
  File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 67, in migrate
    frappe.modules.patch_handler.run_all(skip_failing)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all
    run_patch(patch)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch
    if not run_single(patchmodule = patch):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v13_0/check_is_income_tax_component.py", line 31, in execute
    setup(patch=True)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 15, in setup
    setup_company_independent_fixtures(patch=patch)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 24, in setup_company_independent_fixtures
    add_custom_roles_for_reports()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 62, in add_custom_roles_for_reports
    dict(role='Accounts Manager')
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 231, in insert
    self._validate_links()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 827, in _validate_links
    frappe.LinkValidationError)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 433, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 412, in msgprint
    _raise_exception()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 366, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Report: E-Invoice Summary