'apply-failed' ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.ts,tables/problems.jsonandservices/onsite-scripter/scripts/contract-docs-what-to-do.jsonbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
A member of ProblemCode · stable · since 2.0.0
The runtime failed while applying a document layer, not for a bad key ('document-error'): one entry with layer and no path in ApplyReport.problems (applyDocument, 'document:applied'); at boot, in info().problems.
An internal failure, not your key: applying the layer in problem.layer failed inside the runtime. When it is your page layer ('boot'), call session.applyDocument(document) once more; report it with layer when it repeats.
ApplyReport.applied: Empty when superseded, when the document is no version-2 object at all, or when the apply failed inside the runtime ('apply-failed').ApplyReport.ok: False when problems holds any: a key was rejected, or the whole layer was (no version-2 object, or 'apply-failed').ApplyReport.problems: A failure inside the runtime while applying: one 'apply-failed' with layer and no path.Problem.layer: The document layer, for 'document-error' and 'apply-failed' (see info().document.layers).Session.applyDocument: A failure inside the runtime while applying resolves ok: false too, with one 'apply-failed' problem (layer, no path); it never rejects for that either.testing.FakeSession.script: 'session.applyDocument' has one row, 'apply-failed' (its default problem): it resolves ok: false with one 'apply-failed' problem, and delayMs holds the apply unfinished, so a newer apply supersedes it or a signal aborts it.The set is open: handle a code you don't know ('other').