ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Issue in site migration after upgrade to version 12 latest in custom app

hello i am facing issue in migration sue to custom app

Updating DocTypes for csf_tz : [======= ]Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/erp/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 26, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py”, line 286, in migrate
migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
File “/home/erp/frappe-bench/apps/frappe/frappe/migrate.py”, line 50, in migrate
frappe.model.sync.sync_all(verbose=verbose)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/sync.py”, line 19, in sync_all
sync_for(app, force, verbose=verbose, reset_permissions=reset_permissions)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/sync.py”, line 56, in sync_for
reset_permissions=reset_permissions, for_sync=True)
File “/home/erp/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 66, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File “/home/erp/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 106, in import_doc
doc = frappe.get_doc(docdict)
File “/home/erp/frappe-bench/apps/frappe/frappe/init.py”, line 765, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/document.py”, line 71, in get_doc
return controller(*args, **kwargs)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/document.py”, line 115, in init
super(Document, self).init(kwargs)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 66, in init
self.update(d)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 89, in update
self.set(key, value)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 136, in set
self.extend(key, value)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 173, in extend
self.append(key, v)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 150, in append
value = self._init_child(value, key)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 185, in _init_child
value[“doctype”] = self.get_table_field_doctype(key)
File “/home/erp/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 299, in get_table_field_doctype
return self.meta.get_field(fieldname).options
AttributeError: ‘NoneType’ object has no attribute ‘options’

This is a known issue, can you try

$ bench --force reload-doc core doctype communication_link
$ bench --force reload-doc core doctype communication

dear thanks fo rreply, same issue

its appear when a custom app come in migration

Is it propms migration?

both i upgrade the system with both apps. csf_tz and propms. these installed properly and when restore backup or upgrade erpnext then this error come

You need to identify what changes have been in place, or if you have updated propms and migrated before upgrading.

Update was only for erpnext and frappe framework