Skip to content
docs
Arxo ↗

LDC-E1304 — Relation key names an undeclared parameter

For LLMs5 sections

A relation key lists the parameters that identify each row: every name in the key must be a parameter the relation itself declares. A key that names something the parameter list never introduced points at nothing, so the compiler stops at the unknown name.

The repair is a spelling check against the parameter list: fix the typo, declare the missing parameter, or drop the name from the key. The key keeps only what the relation declares.

Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
relation p(x: Text) kind institutional {
key(y);
}
Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
relation p(x: Text) kind institutional {
key(x);
}

The engine reports this in its own wording:

Output
example.law:6:9: error LDC-E1304: key(y): parameter is not declared in relation "p" (§45.1)

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.