'transaction-timeout' ​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
A transaction made no progress for timeoutMs, or hit the hold cap; it rolled back.
The transaction made no progress for timeoutMs (10000 by default), or once it held the display, the hold lasted that long; it rolled back. Do slow non-runtime work (a fetch, a prompt to the shopper) before session.transaction(work) opens and only tx writes inside it; raise TransactionOptions.timeoutMs only for runtime loads that need longer.
const quote = await fetch('/api/quote').then((r) => r.json() as Promise<{ material: string }>);
await session.transaction(async (tx) => { await tx.select(fabricGroup, quote.material); });
The set is open: handle a code you don't know ('other').
failure-matrix/cases/timeout (tables/failure-matrix.json)hold/cases/case-3 (tables/hold.json)