Problem code 'target-unmatched' ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts, tables/problems.json and services/onsite-scripter/scripts/contract-docs-what-to-do.json by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

A member of ProblemCode · stable · since 2.0.0

A query matched nothing, or a placed model's globalMaterialList meshName matches none of its meshes but is close to one (a typo; once, at the commit that places the model); didYouMean names close authored names.

What to do ​

Fix the query, not the write: name and slot are case-sensitive globs over the WHOLE authored name ('Drawer*' matches 'Drawer_Left', 'Drawer' matches only 'Drawer'), didYouMean lists close authored names, and session.find({ node: nodeId }).list() shows the names a loaded model has. A rule written while an earlier scene write is pending waits for it (pending: true), so call setSceneModel before the rule that needs its parts. One whose message names a globalMaterialList entry was recorded when that model was placed: fix the stored entry's meshName (didYouMean names the model's close mesh names), since a select of its group commits and reports matched 1 while it dresses nothing there.

ts
await session.find({ node: sofaId, name: 'Drawer*' }).set({ visible: false });
console.log(session.find({ node: sofaId }).list().map((p) => p.name));

Where the declaration names it ​

The set is open: handle a code you don't know ('other').

Recorded by ​