question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

frappe.desk.form.utils has no attribute validate_link

See original GitHub issue

Hi @sagarvora

Just did a bench update and while creating a new quotation getting the below error, probably form this PR #14445.

Unable to get any link to Currency, items, customer, prices etc… in short all linked documents

image

traceback

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
    method = get_attr(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 201, in get_attr
    method = frappe.get_attr(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1193, in get_attr
    return getattr(get_module(modulename), methodname)
AttributeError: module 'frappe.desk.form.utils' has no attribute 'validate_link'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 58, in execute_cmd
    frappe.throw(_('Failed to get method for command {0} with {1}').format(cmd, e))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 437, 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 416, in msgprint
    _raise_exception()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 370, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.ValidationError: Failed to get method for command frappe.desk.form.utils.validate_link with module 'frappe.desk.form.utils' has no attribute 'validate_link'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sagarvoracommented, Oct 26, 2021

Yes, please rebuild. As evident from your search, this code isn’t present anywhere in apps.

1reaction
centaur78commented, Oct 26, 2021

There are not custom code… its vanilla develop branch

I did search for “frappe.desk.form.utils.validate_link” after the update… the only place they are referenced are in 2 files controls.bundle.xxxxx.js and forms.bundle.xxxxxx.js… Should i do a bench build and see if that resolves the issue ??

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frappe.desk.form.utils has no attribute 'validate_link' - ERPNext
So I deployed this server for production a few days back and found out the wkhtmltopdf was not working coz of some qt_patch, ......
Read more >
Frappe Framework - Git - OpenForge
Project privacy set to public. By default, its content is available to everyone (authenticated or not). Please note that more restrictive permissions might ......
Read more >
'module' object has no attribute 'generate_barcode' - Stack ...
The whitespace before @frappe.whitelist() could be the problem.
Read more >
Form Scripts - Frappe Framework
For example, todo.js which is located at frappe/desk/doctype/todo/todo.js may look like this ... Check if form values has been changed and is not...
Read more >
github copilot tutorial Code Example
AttributeError: module 'cv2.cv2' has no attribute 'face' ... Module not found: Error: Can't resolve 'react-bootstrap/Form' in 'C:\Users\MLAB\my-hotel\src' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found