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

migration issue Psql: Field project is referring to non-existing doctype Project. #1231

Open
vamagithub opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working Migration

Comments

@vamagithub
Copy link

Information about bug

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 114, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 50, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1726, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/desk/form/load.py", line 73, in getdoctype
    docs = get_meta_bundle(doctype)
  File "apps/frappe/frappe/desk/form/load.py", line 84, in get_meta_bundle
    bundle = [frappe.desk.form.meta.get_meta(doctype)]
  File "apps/frappe/frappe/desk/form/meta.py", line 42, in get_meta
    meta = FormMeta(doctype, cached=False)
  File "apps/frappe/frappe/desk/form/meta.py", line 53, in __init__
    self.load_assets()
  File "apps/frappe/frappe/desk/form/meta.py", line 59, in load_assets
    self.add_search_fields()
  File "apps/frappe/frappe/desk/form/meta.py", line 191, in add_search_fields
    self._show_missing_doctype_msg(df)
  File "apps/frappe/frappe/desk/form/meta.py", line 213, in _show_missing_doctype_msg
    frappe.throw(msg, title=_("Missing DocType"))
  File "apps/frappe/frappe/__init__.py", line 603, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 568, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 519, in _raise_exception
    raise exc
frappe.exceptions.ValidationError: Field <strong>project</strong> is referring to non-existing doctype <strong>Project</strong>.

Module

projects

Version

Frappe - pre-prod
ERPNext - pre-prod

Installation method

None

Relevant log output / Stack trace / Full Error Message.

@vamagithub vamagithub added the bug Something isn't working label Feb 10, 2025
@ksagar8848 ksagar8848 self-assigned this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Migration
Projects
None yet
Development

No branches or pull requests

3 participants