{"record":{"id":"e1965c6b5706be29","repo":"clockworklabs/SpacetimeDB","slug":"table-tablename-defines-a-schedule-but-it-seem","errorCode":null,"errorMessage":"Table ${tableName} defines a schedule, but it seems like the associated function was not exported.","messagePattern":"Table (.+?) defines a schedule, but it seems like the associated function was not exported\\.","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"crates/bindings-typescript/src/server/schema.ts","lineNumber":189,"sourceCode":"          'Schedule target table is not part of this schema.'\n        );\n      }\n\n      const scheduleAtCol = knownScheduleAtCol ?? table.scheduleAtCol;\n      if (scheduleAtCol === undefined) {\n        throw new TypeError(\n          `Table ${tableName} defines a schedule, but it does not have a ScheduleAt column.`\n        );\n      }\n\n      const functionName =\n        knownFunctionName ??\n        (reducer === undefined\n          ? undefined\n          : this.functionExports.get(reducer()));\n      if (functionName === undefined) {\n        const msg = `Table ${tableName} defines a schedule, but it seems like the associated function was not exported.`;\n        throw new TypeError(msg);\n      }\n      const existingFunctionName = scheduledTables.get(tableName);\n      if (existingFunctionName !== undefined) {\n        throw new TypeError(\n          `Table ${tableName} defines multiple schedules: ${existingFunctionName} and ${functionName}. A schedule table can only be used by one reducer or procedure.`\n        );\n      }\n      scheduledTables.set(tableName, functionName);\n      this.moduleDef.schedules.push({\n        sourceName: undefined,\n        tableName,\n        scheduleAtCol,\n        functionName,\n      });\n    }\n  }\n\n  resolveHttpRoutes() {","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/crates/bindings-typescript/src/server/schema.ts#L171-L207","documentation":"Error \"Table ${tableName} defines a schedule, but it seems like the associated function was not exported.\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at crates/bindings-typescript/src/server/schema.ts:189 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"524b4487d949b61a07d4f39c862d1290259dfd20","analyzedAt":"2026-08-16T23:58:54.611Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}