clockworklabs/SpacetimeDB · error · TypeError
Table ${tableName} defines multiple schedules: ${existingFun
Error message
Table ${tableName} defines multiple schedules: ${existingFunctionName} and ${functionName}. A schedule table can only be used by one reducer or procedure. What it means
Error "Table ${tableName} defines multiple schedules: ${existingFunctionName} and ${functionName}. A schedule table can only be used by one reducer or procedure." thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/bindings-typescript/src/server/schema.ts:193
const scheduleAtCol = knownScheduleAtCol ?? table.scheduleAtCol;
if (scheduleAtCol === undefined) {
throw new TypeError(
`Table ${tableName} defines a schedule, but it does not have a ScheduleAt column.`
);
}
const functionName =
knownFunctionName ??
(reducer === undefined
? undefined
: this.functionExports.get(reducer()));
if (functionName === undefined) {
const msg = `Table ${tableName} defines a schedule, but it seems like the associated function was not exported.`;
throw new TypeError(msg);
}
const existingFunctionName = scheduledTables.get(tableName);
if (existingFunctionName !== undefined) {
throw new TypeError(
`Table ${tableName} defines multiple schedules: ${existingFunctionName} and ${functionName}. A schedule table can only be used by one reducer or procedure.`
);
}
scheduledTables.set(tableName, functionName);
this.moduleDef.schedules.push({
sourceName: undefined,
tableName,
scheduleAtCol,
functionName,
});
}
}
resolveHttpRoutes() {
for (const route of this.pendingHttpRoutes) {
const handlerFunction = this.httpHandlerExports.get(route.handler);
if (handlerFunction === undefined) {
throw new TypeError(View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/bindings-typescript/src/server/schema.ts:193 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/2baf2d53ac620a67.
Report an issue: GitHub.