Hello everyone,
I am new to the forum. I am using the basic plan on Frappecloud to run instance of ERPNext (which is really great!). Recently it is failing to update (Frappe Framework, ERPNext and Frappe HR). It seems to update the site, but then fails on site migration. I have only very basic experience with Frappe and ERP. The problem seems to be around a missing DocType. I have no idea how could that come around. I certainly did not intentionally delete any DocTypes. Do you have any ideas on how I can sort it out?
Below is the error message:
Thank you in advance for any help!
Kind regards,
Przemek
P.S. dots replaced with spaces
Migrating mi-company erpnext com
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for payments : [========================================] 100%
Updating DocTypes for erpnext : [========================================] 100%
Updating DocTypes for hrms : [========================================] 100%
Updating DocTypes for chat : [========================================] 100%
Executing frappe patches v15_0 sanitize_workspace_titles in mi-company erpnext com (_c94355b3c06ec960)
Success: Done in 0 179s
Executing execute:frappe db set_single_value('E Commerce Settings', 'show_actual_qty', 1) in mi-company erpnext com (_c94355b3c06ec960)
Success: Done in 0 009s
Executing hrms patches v14_0 update_ess_user_access #2023-08-14 in mi-company erpnext com (_c94355b3c06ec960)
Traceback with variables (most recent call last):
File "/usr/lib/python3 10/runpy py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
mod_name = 'frappe utils bench_helper'
alter_argv = True
mod_spec = ModuleSpec(name='frappe utils bench_helper', loader=<_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py')
code = <code object <module> at 0x7f38a77a47c0, file "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py", line 1>
main_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe utils', '__loader__': <_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, '__spec__': ModuleSpec(name='frappe utils bench_helper', loader=<_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper cpython-310 pyc', 'importlib': <module 'importlib' from '/usr/lib/python3 10/importlib/__init__ py'>, 'json': <module 'json' from '/usr/lib/python3 10/json/__init__ py'>, 'os': <module 'os' from '/usr/lib/python3 10/os py'>, 'traceback': <module 'traceback' from '/usr/lib/python3 10/traceback py'>, 'warnings': <module 'warnings' from '/usr/lib/python3 10/warnings py'>, 'click': <m
File "/usr/lib/python3 10/runpy py", line 86, in _run_code
exec(code, run_globals)
code = <code object <module> at 0x7f38a77a47c0, file "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py", line 1>
run_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe utils', '__loader__': <_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, '__spec__': ModuleSpec(name='frappe utils bench_helper', loader=<_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper cpython-310 pyc', 'importlib': <module 'importlib' from '/usr/lib/python3 10/importlib/__init__ py'>, 'json': <module 'json' from '/usr/lib/python3 10/json/__init__ py'>, 'os': <module 'os' from '/usr/lib/python3 10/os py'>, 'traceback': <module 'traceback' from '/usr/lib/python3 10/traceback py'>, 'warnings': <module 'warnings' from '/usr/lib/python3 10/warnings py'>, 'click': <m
init_globals = None
mod_name = '__main__'
mod_spec = ModuleSpec(name='frappe utils bench_helper', loader=<_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py')
pkg_name = 'frappe utils'
script_name = None
loader = <_frozen_importlib_external SourceFileLoader object at 0x7f38a86efb50>
fname = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py'
cached = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper cpython-310 pyc'
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py", line 109, in <module>
main()
skipped 25 vars
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper py", line 18, in main
click Group(commands=commands)(prog_name="bench")
commands = {'frappe': <Group frappe>, 'get-frappe-commands': <Command get-frappe-commands>, 'get-frappe-help': <Command get-frappe-help>}
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 829, in __call__
return self main(*args, **kwargs)
self = <Group None>
args = ()
kwargs = {'prog_name': 'bench'}
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 782, in main
rv = self invoke(ctx)
self = <Group None>
args = ['frappe', '--site', 'mi-company erpnext com', 'migrate', '--skip-search-index']
prog_name = 'bench'
complete_var = None
standalone_mode = True
extra = {}
ctx = <click core Context object at 0x7f38a77b5d50>
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 1259, in invoke
return _process_result(sub_ctx command invoke(sub_ctx))
_process_result = <function MultiCommand invoke <locals> _process_result at 0x7f38a77c4dc0>
args = ['migrate', '--skip-search-index']
cmd_name = 'frappe'
cmd = <Group frappe>
sub_ctx = <click core Context object at 0x7f38a66b65f0>
ctx = <click core Context object at 0x7f38a77b5d50>
self = <Group None>
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 1259, in invoke
return _process_result(sub_ctx command invoke(sub_ctx))
_process_result = <function MultiCommand invoke <locals> _process_result at 0x7f38a67125f0>
args = []
cmd_name = 'migrate'
cmd = <Command migrate>
sub_ctx = <click core Context object at 0x7f38a66fe800>
ctx = <click core Context object at 0x7f38a66b65f0>
self = <Group frappe>
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 1066, in invoke
return ctx invoke(self callback, **ctx params)
self = <Command migrate>
ctx = <click core Context object at 0x7f38a66fe800>
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/core py", line 610, in invoke
return callback(*args, **kwargs)
args = ()
kwargs = {'skip_search_index': True, 'skip_failing': False}
self = <click core Context object at 0x7f38a66fe800>
callback = <function migrate at 0x7f38a75c08b0>
ctx = <click core Context object at 0x7f38a66fe800>
File "/home/frappe/frappe-bench/env/lib/python3 10/site-packages/click/decorators py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
args = ()
kwargs = {'skip_search_index': True, 'skip_failing': False}
f = <function migrate at 0x7f38a75c0670>
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__ py", line 29, in _func
ret = f(frappe _dict(ctx obj), *args, **kwargs)
ctx = <click core Context object at 0x7f38a66fe800>
args = ()
kwargs = {'skip_search_index': True, 'skip_failing': False}
profile = False
f = <function migrate at 0x7f38a75c05e0>
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site py", line 686, in migrate
SiteMigration(
context = {'sites': ['mi-company erpnext com'], 'force': False, 'verbose': False, 'profile': False}
skip_failing = False
skip_search_index = True
activate_by_import = <module 'traceback_with_variables activate_by_import' from '/home/frappe/frappe-bench/env/lib/python3 10/site-packages/traceback_with_variables/activate_by_import py'>
SiteMigration = <class 'frappe migrate SiteMigration'>
site = 'mi-company erpnext com'
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate py", line 181, in run
self run_schema_updates()
self = <frappe migrate SiteMigration object at 0x7f38a66feb00>
site = 'mi-company erpnext com'
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate py", line 52, in wrapper
raise e
args = (<frappe migrate SiteMigration object at 0x7f38a66feb00>,)
kwargs = {}
method = <function SiteMigration run_schema_updates at 0x7f38a1cc2170>
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate py", line 44, in wrapper
ret = method(*args, **kwargs)
args = (<frappe migrate SiteMigration object at 0x7f38a66feb00>,)
kwargs = {}
method = <function SiteMigration run_schema_updates at 0x7f38a1cc2170>
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate py", line 120, in run_schema_updates
frappe modules patch_handler run_all(
self = <frappe migrate SiteMigration object at 0x7f38a66feb00>
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler py", line 75, in run_all
run_patch(patch)
patch_type = <PatchType post_model_sync: 'post_model_sync'>
executed = {'erpnext patches v13_0 add_po_to_global_search', 'frappe patches v13_0 rename_notification_fields', 'erpnext patches v13_0 set_status_in_maintenance_schedule_table', 'hrms patches v14_0 update_repay_from_salary_and_payroll_payable_account_fields', 'erpnext patches v13_0 convert_to_website_item_in_item_card_group_template', "execute:frappe delete_doc('Page', 'data-import-tool', ignore_missing=True)", 'erpnext patches v12_0 set_cost_center_in_child_table_of_expense_claim', 'frappe patches v12_0 set_correct_url_in_files', 'erpnext patches v12_0 set_quotation_status', 'erpnext patches v13_0 rename_issue_doctype_fields', 'frappe patches v14_0 delete_data_migration_tool', "execute:frappe rename_doc('Country', 'Iran, Islamic Republic of', 'Iran', ignore_if_exists=True)", 'frappe patches v13_0 reset_corrupt_defaults', 'frappe patches v10_0 increase_single_table_column_length', 'erpnext patches v13_0 add_naming_series_to_old_projects # 1-02-2021', 'erpnext patches v13_0 update_docs_link', 'erp
run_patch = <function run_all <locals> run_patch at 0x7f38a10e6710>
patches = ["execute:frappe get_doc('Role', 'Guest') save() # remove desk access", 'frappe core doctype role patches v13_set_default_desk_properties', 'frappe patches v14_0 update_workspace2 # 06 06 2023', 'frappe patches v14_0 drop_data_import_legacy', 'frappe patches v14_0 copy_mail_data #08 03 21', 'frappe patches v14_0 update_github_endpoints #08-11-2021', 'frappe patches v14_0 remove_db_aggregation', 'frappe patches v14_0 update_color_names_in_kanban_board_column', 'frappe patches v14_0 update_is_system_generated_flag', 'frappe patches v14_0 update_auto_account_deletion_duration', 'frappe patches v14_0 update_integration_request', 'frappe patches v14_0 set_document_expiry_default', 'frappe patches v14_0 delete_data_migration_tool', 'frappe patches v14_0 set_suspend_email_queue_default', 'frappe patches v14_0 different_encryption_key', 'frappe patches v14_0 update_multistep_webforms', 'frappe patches v14_0 drop_unused_indexes', 'frappe patches v14_0 disable_email_accounts_with_oauth', 'frappe
patch = 'hrms patches v14_0 update_ess_user_access #2023-08-14'
skip_failing = False
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler py", line 62, in run_patch
if not run_single(patchmodule=patch):
patch = 'hrms patches v14_0 update_ess_user_access #2023-08-14'
skip_failing = False
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler py", line 150, in run_single
return execute_patch(patchmodule, method, methodargs)
patchmodule = 'hrms patches v14_0 update_ess_user_access #2023-08-14'
method = None
methodargs = None
force = False
conf = <LocalProxy unbound>
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler py", line 186, in execute_patch
_patch()
patchmodule = 'hrms patches v14_0 update_ess_user_access #2023-08-14'
method = None
methodargs = None
has_patch_file = True
patch = 'hrms patches v14_0 update_ess_user_access execute'
docstring = ''
_patch = <function execute at 0x7f38a0cdfa30>
start_time = 1706997785 899047
File "/home/frappe/frappe-bench/apps/hrms/hrms/patches/v14_0/update_ess_user_access py", line 5, in execute
add_non_standard_user_types()
File "/home/frappe/frappe-bench/apps/hrms/hrms/setup py", line 522, in add_non_standard_user_types
create_user_type(user_type, data)
user_types = {'Employee Self Service': {'role': 'Employee Self Service', 'apply_user_permission_on': 'Employee', 'user_id_field': 'user_id', 'doctypes': {'Holiday List': ['read'], 'Employee': ['read', 'write'], 'Company': ['read'], 'Salary Slip': ['read'], 'Employee Benefit Application': ['read', 'write', 'create', 'delete'], 'Expense Claim': ['read', 'write', 'create', 'delete'], 'Expense Claim Type': ['read'], 'Employee Advance': ['read', 'write', 'create', 'delete'], 'Leave Application': ['read', 'write', 'create', 'delete'], 'Attendance Request': ['read', 'write', 'create', 'delete'], 'Compensatory Leave Request': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Declaration': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Proof Submission': ['read', 'write', 'create', 'delete'], 'Timesheet': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend'], 'Training Program': ['read'], 'Training Feedback': ['read', 'write', 'create', 'delete', 'submit', 'cancel',
user_type_limit = {'employee_self_service': 30}
user_type = 'Employee Self Service'
data = {'role': 'Employee Self Service', 'apply_user_permission_on': 'Employee', 'user_id_field': 'user_id', 'doctypes': {'Holiday List': ['read'], 'Employee': ['read', 'write'], 'Company': ['read'], 'Salary Slip': ['read'], 'Employee Benefit Application': ['read', 'write', 'create', 'delete'], 'Expense Claim': ['read', 'write', 'create', 'delete'], 'Expense Claim Type': ['read'], 'Employee Advance': ['read', 'write', 'create', 'delete'], 'Leave Application': ['read', 'write', 'create', 'delete'], 'Attendance Request': ['read', 'write', 'create', 'delete'], 'Compensatory Leave Request': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Declaration': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Proof Submission': ['read', 'write', 'create', 'delete'], 'Timesheet': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend'], 'Training Program': ['read'], 'Training Feedback': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend'], 'Employee Check
File "/home/frappe/frappe-bench/apps/hrms/hrms/setup py", line 591, in create_user_type
doc save(ignore_permissions=True)
user_type = 'Employee Self Service'
data = {'role': 'Employee Self Service', 'apply_user_permission_on': 'Employee', 'user_id_field': 'user_id', 'doctypes': {'Holiday List': ['read'], 'Employee': ['read', 'write'], 'Company': ['read'], 'Salary Slip': ['read'], 'Employee Benefit Application': ['read', 'write', 'create', 'delete'], 'Expense Claim': ['read', 'write', 'create', 'delete'], 'Expense Claim Type': ['read'], 'Employee Advance': ['read', 'write', 'create', 'delete'], 'Leave Application': ['read', 'write', 'create', 'delete'], 'Attendance Request': ['read', 'write', 'create', 'delete'], 'Compensatory Leave Request': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Declaration': ['read', 'write', 'create', 'delete'], 'Employee Tax Exemption Proof Submission': ['read', 'write', 'create', 'delete'], 'Timesheet': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend'], 'Training Program': ['read'], 'Training Feedback': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend'], 'Employee Check
doc = <UserType: Employee Self Service>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 309, in save
return self _save(*args, **kwargs)
self = <UserType: Employee Self Service>
args = ()
kwargs = {'ignore_permissions': True}
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 361, in _save
self run_post_save_methods()
self = <UserType: Employee Self Service>
ignore_permissions = True
ignore_version = None
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 1088, in run_post_save_methods
self run_method("on_update")
self = <UserType: Employee Self Service>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 915, in run_method
out = Document hook(fn)(self, *args, **kwargs)
self = <UserType: Employee Self Service>
args = ()
kwargs = {}
fn = <function Document run_method <locals> fn at 0x7f38a0940f70>
method = 'on_update'
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 1277, in composer
return composed(self, method, *args, **kwargs)
self = <UserType: Employee Self Service>
args = ()
kwargs = {}
hooks = [<function clear_doctype_notifications at 0x7f38a60d0ee0>, <function update_feed at 0x7f38a0eb9090>, <function process_workflow_actions at 0x7f38a0ebbd00>, <function attach_files_to_document at 0x7f38a7004a60>, <function notify_consumers at 0x7f38a0eb8820>, <function apply at 0x7f38a0ef6170>, <function update_due_date at 0x7f38a0ef6200>, <function apply_permissions_for_non_standard_user_type at 0x7f38a0f1dcf0>]
method = 'on_update'
doc_events = {'*': {'after_insert': ['frappe event_streaming doctype event_update_log event_update_log notify_consumers'], 'on_update': ['frappe desk notifications clear_doctype_notifications', 'frappe core doctype activity_log feed update_feed', 'frappe workflow doctype workflow_action workflow_action process_workflow_actions', 'frappe core doctype file utils attach_files_to_document', 'frappe event_streaming doctype event_update_log event_update_log notify_consumers', 'frappe automation doctype assignment_rule assignment_rule apply', 'frappe automation doctype assignment_rule assignment_rule update_due_date', 'frappe core doctype user_type user_type apply_permissions_for_non_standard_user_type'], 'after_rename': ['frappe desk notifications clear_doctype_notifications'], 'on_cancel': ['frappe desk notifications clear_doctype_notifications', 'frappe workflow doctype workflow_action workflow_action process_workflow_actions', 'frappe event_streaming doctype event_update_log event_update_log notify_co
handler = 'frappe core doctype user_type user_type apply_permissions_for_non_standard_user_type'
composed = <function Document hook <locals> compose <locals> runner at 0x7f38a09412d0>
compose = <function Document hook <locals> compose at 0x7f38a0940940>
f = <function Document run_method <locals> fn at 0x7f38a0940f70>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 1259, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <UserType: Employee Self Service>
method = 'on_update'
args = ()
kwargs = {}
add_to_return_value = <function Document hook <locals> add_to_return_value at 0x7f38a0940e50>
fn = <function Document run_method <locals> fn at 0x7f38a0940f70>
hooks = (<function clear_doctype_notifications at 0x7f38a60d0ee0>, <function update_feed at 0x7f38a0eb9090>, <function process_workflow_actions at 0x7f38a0ebbd00>, <function attach_files_to_document at 0x7f38a7004a60>, <function notify_consumers at 0x7f38a0eb8820>, <function apply at 0x7f38a0ef6170>, <function update_due_date at 0x7f38a0ef6200>, <function apply_permissions_for_non_standard_user_type at 0x7f38a0f1dcf0>)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 912, in fn
return method_object(*args, **kwargs)
self = <UserType: Employee Self Service>
args = ()
kwargs = {}
method_object = <bound method UserType on_update of <UserType: Employee Self Service>>
method = 'on_update'
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user_type/user_type py", line 30, in on_update
self add_role_permissions_for_select_doctypes()
self = <UserType: Employee Self Service>
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user_type/user_type py", line 158, in add_role_permissions_for_select_doctypes
docperm = add_role_permissions(row document_type, self role)
self = <UserType: Employee Self Service>
doctype = 'select_doctypes'
row = <UserSelectDocumentType: d5989d131d parent=Employee Self Service>
docperm = 'fe7ce38986'
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user_type/user_type py", line 187, in add_role_permissions
name = add_permission(doctype, role, 0)
doctype = 'Religious Denomination'
role = 'Employee Self Service'
name = None
File "/home/frappe/frappe-bench/apps/frappe/frappe/permissions py", line 644, in add_permission
validate_permissions_for_doctype(doctype)
doctype = 'Religious Denomination'
role = 'Employee Self Service'
permlevel = 0
ptype = 'read'
validate_permissions_for_doctype = <function validate_permissions_for_doctype at 0x7f38a1193880>
custom_docperm = <CustomDocPerm: a6aefdffd6 parent=Religious Denomination>
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype py", line 1511, in validate_permissions_for_doctype
doctype = frappe get_doc("DocType", doctype)
doctype = 'Religious Denomination'
for_remove = False
alert = False
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__ py", line 1197, in get_doc
doc = frappe model document get_doc(*args, **kwargs)
args = ('DocType', 'Religious Denomination')
kwargs = {}
frappe = <module 'frappe' from '/home/frappe/frappe-bench/apps/frappe/frappe/__init__ py'>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 75, in get_doc
return controller(*args, **kwargs)
args = ('DocType', 'Religious Denomination')
kwargs = {}
doctype = 'DocType'
controller = <class 'frappe core doctype doctype doctype DocType'>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 107, in __init__
self load_from_db()
self = <DocType: Religious Denomination>
args = ('DocType', 'Religious Denomination')
kwargs = {}
__class__ = <class 'frappe model document Document'>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document py", line 150, in load_from_db
frappe throw(
self = <DocType: Religious Denomination>
d = None
__class__ = <class 'frappe model document Document'>
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__ py", line 540, in throw
msgprint(
msg = 'DocType Religious Denomination not found'
exc = <class 'frappe exceptions DoesNotExistError'>
title = None
is_minimizable = False
wide = False
as_list = False
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__ py", line 508, in msgprint
_raise_exception()
title = None
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)>
out = {'message': 'DocType Religious Denomination not found', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1}
_raise_exception = <function msgprint <locals> _raise_exception at 0x7f38a0942680>
_strip_html_tags = <functools _lru_cache_wrapper object at 0x7f38a1126980>
msg = 'DocType Religious Denomination not found'
raise_exception = <class 'frappe exceptions DoesNotExistError'>
strip_html_tags = <function strip_html_tags at 0x7f38a7783ac0>
skipped 1 vars
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__ py", line 454, in _raise_exception
raise raise_exception(msg)
msg = 'DocType Religious Denomination not found'
raise_exception = <class 'frappe exceptions DoesNotExistError'>
skipped 1 vars
frappe exceptions DoesNotExistError: DocType Religious Denomination not found