Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

GDS Error Messages: What Each One Means and the Fix

· 4 min read · Home Tech

In this article
  1. The Seven GDS Errors You Will Actually See
  2. What a Healthy GDS Call Looks Like
  3. Confirming Each Cause Before You Fix It
  4. Symptom, Likely Cause and Fix at a Glance
  5. How to Tell the Fix Worked
  6. Keeping GDS Errors From Coming Back

Most Neo4j Graph Data Science (GDS) errors mean one of three things: the library is not loaded, the graph projection failed, or the algorithm ran out of memory. Match the exact message to its cause below and apply the paired fix.

Time 8 min · Steps 7 · Level Medium

The Seven GDS Errors You Will Actually See

  1. "Unknown procedure" or "There is no procedure with the name gds.*" - The GDS plugin is not installed or not loaded by your Neo4j server. Install the plugin jar into the plugins folder and restart.
  2. "Procedure already registered" - Two copies of the GDS jar are in the plugins folder. Delete the duplicate and restart.
  3. "Graph with name X already exists" - You are projecting a graph under a name that is already in the catalog. Drop it first with gds.graph.drop, or use IF EXISTS semantics.
  4. "Node projection with node key X not found" - The label in your projection does not exist in the database. Check spelling and case; labels are case-sensitive.
  5. "Relationship weight property not found" - The property name in the projection config does not exist on those relationships. Inspect one relationship's keys before projecting.
  6. "Memory consumption during projection exceeded" - The graph does not fit in the configured memory limit. Raise the limit, project fewer labels, or drop node properties you do not need.
  7. "The minimum community size is larger than the number of nodes" - An algorithm parameter is out of range for your graph size. Adjust the parameter to fit the projected node count.

What a Healthy GDS Call Looks Like

A working pipeline has three stages, and knowing them tells you which stage an error belongs to. First, CALL gds.graph.project creates an in-memory graph and returns a row with nodeCount and relationshipCount, both greater than zero. Second, the algorithm call (for example gds.pageRank.stream) returns rows without warnings about missing properties. Third, gds.graph.drop frees the memory. If the projection row shows nodeCount 0, the error is in your projection syntax, not the algorithm - fix that before touching algorithm parameters.

Confirming Each Cause Before You Fix It

Run CALL gds.debug.listProcedures() or check the plugins folder before changing anything - a five-second check beats reinstalling. Each cause below has its confirmation step and its fix.

Plugin and version problems

Confirm: look in the Neo4j plugins folder for the GDS jar file, and check the server log at startup for a line saying the library was loaded. Fix: exactly one jar, matching your Neo4j version, in the plugins folder, then restart the server. The GDS release notes state which Neo4j versions each library version supports - a mismatch is the single most common source of the "Unknown procedure" message.

Projection problems

Confirm: call gds.graph.list and read the nodeCount, relationshipCount and schema of the existing graph. A zero count or a missing property column pinpoints the bad part of the projection. Fix: drop the graph with gds.graph.drop('name') and re-project with the correct labels, relationship types and property names. Labels, relationship types and property keys are all case-sensitive, so "Route" and "route" are different things to GDS.

Memory problems

Confirm: run the estimate mode first - most algorithms offer a .stats or .estimate suffix, and gds.graph.project also supports estimation. The estimate tells you the bytes needed before anything runs. Fix: raise the memory limit in the Neo4j configuration, or shrink the projection by removing node properties and relationship types the algorithm does not use. Estimating first is the habit that prevents nearly all mid-run failures.

Symptom, Likely Cause and Fix at a Glance

SymptomLikely causeFix
"Unknown procedure gds..."Plugin missing or wrong versionInstall matching jar, restart server
"Procedure already registered"Duplicate jar in pluginsRemove duplicate, restart
"Graph name already exists"Stale graph in cataloggds.graph.drop, then re-project
nodeCount 0 in projection resultWrong label or caseCorrect the label spelling
"Weight property not found"Property missing on relsCheck keys, fix property name
Run fails partway with memory errorGraph exceeds memory limitEstimate, raise limit or shrink projection
Empty results but no errorStreamed to wrong contextUse .write to persist, or consume the stream

How to Tell the Fix Worked

After a plugin fix, CALL gds.debug.listProcedures() should list the gds procedures, and a trivial call like gds.graph.list should return without the "Unknown procedure" message. After a projection fix, the projection result shows a nodeCount matching your MATCH (n:Label) RETURN count(n) query - run both and compare the numbers. After a memory fix, the estimate mode reports a figure below your configured limit, and the algorithm completes with a row containing createMillis, computeMillis and writeMillis, all non-zero. If those three timings appear, the pipeline ran end to end.

Keeping GDS Errors From Coming Back

Always estimate before you run: the estimate calls cost seconds and replace guesswork about memory. Drop graphs you are finished with - gds.graph.list shows everything still held in memory, and each one holds RAM until dropped or the server restarts. Keep one GDS jar, version-matched, in the plugins folder, and note the version somewhere so a future Neo4j upgrade does not silently break it. Finally, wrap projections in a drop-then-project pattern in your scripts so re-running a script never collides with the "already exists" error.

Official source: Neo4j Graph Data Science Documentation