{"record":{"id":"466205bcd76b9466","repo":"octobercms/october","slug":"the-table-client-side-data-source-class-datasour","errorCode":null,"errorMessage":"The table client-side data source class \"{dataSourceClass}\" is not found in the $.oc.table.datasource namespace.","messagePattern":"The table client-side data source class \"(.+?)\" is not found in the \\$\\.oc\\.table\\.datasource namespace\\.","errorType":"console","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/table/assets/js/table.js","lineNumber":149,"sourceCode":"            var column = this.options.columns[i].key\n\n            this.cellProcessors[column].dispose()\n            this.cellProcessors[column] = null\n        }\n\n        this.cellProcessors = null\n        this.activeCellProcessor = null\n    }\n\n    Table.prototype.setColumnConfiguration = function(column, options) {\n        this.cellProcessors[column].columnConfiguration = { ...this.cellProcessors[column].columnConfiguration || {}, ...options };\n    }\n\n    Table.prototype.createDataSource = function() {\n        var dataSourceClass = this.options.clientDataSourceClass\n\n        if ($.oc.table.datasource === undefined || $.oc.table.datasource[dataSourceClass] == undefined)\n            throw new Error('The table client-side data source class \"'+dataSourceClass+'\" is not ' +\n                'found in the $.oc.table.datasource namespace.')\n\n        this.dataSource = new $.oc.table.datasource[dataSourceClass](this)\n    }\n\n    Table.prototype.registerHandlers = function() {\n        this.el.addEventListener('click', this.clickHandler);\n        this.el.addEventListener('keydown', this.keydownHandler);\n        this.$el.one('dispose-control', this.disposeBound);\n\n        document.addEventListener('click', this.documentClickHandler);\n\n        if (this.options.postback && this.options.clientDataSourceClass == 'client') {\n            this.$el.closest('form').bind('oc.beforeRequest', this.formSubmitHandler);\n        }\n\n        var toolbar = this.getToolbar();\n        if (toolbar) {","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/table/assets/js/table.js#L131-L167","documentation":"createDataSource() on the client side could not resolve options.clientDataSourceClass inside the $.oc.table.datasource namespace: the configured class name does not match any registered data source (e.g. 'client' or 'server' classes were not loaded or the name is misspelled).","triggerScenarios":"Thrown at modules/backend/widgets/table/assets/js/table.js:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set clientDataSourceClass to a valid name such as 'client' or 'server' matching the registered data sources","Ensure table.datasource.base.js and the specific data source script are loaded so the class exists in the namespace","For custom data sources, register them on $.oc.table.datasource before the table initializes"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}