Home / Godot / G14

Godot error: Node not found: "%s" (relative to "%s"). — cause and fix

The node path passed to get_node() / get_node_or_null() resolves to nothing under the curr

ID
G14
Engine
Godot
Verification
源码原文(scene/main/node.cpp:1994)
Frequency
未公开

Original message (verbatim)

Node not found: "%s" (relative to "%s").

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

Trigger

The node path passed to get_node() / get_node_or_null() resolves to nothing under the current node: typo, child not yet added, or the referenced node was freed.

Typical cause

get_node_or_null walks the subtree along the relative path; on miss it formats this ERR_FAIL_V_MSG with the relative / absolute path and returns null.

Step-by-step fix

  1. Check the path spelling and node name casing; Godot node names are case-sensitive.
  2. Confirm the target node is already in the scene tree; fetch nodes after the scene instance is ready.
  3. Use has_node() before fetching, and avoid dereferencing a null node directly.

Source links

Per-entry sources and capture date are listed at /sources#G14.

Related errors

Related Godot errors

Need an offline quick-reference checklist?

Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00