{"record":{"id":"a8d0aca99171a6cd","repo":"octobercms/october","slug":"the-required-data-data-attribute-is-not-found-on-t-a8d0ac","errorCode":null,"errorMessage":"The required data-data attribute is not found on the table control element.","messagePattern":"The required data-data attribute is not found on the table control element\\.","errorType":"console","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/table/assets/js/table.datasource.server.js","lineNumber":27,"sourceCode":"    if ($.oc.table === undefined)\n        throw new Error(\"The $.oc.table namespace is not defined. Make sure that the table.js script is loaded.\");\n\n    if ($.oc.table.datasource === undefined)\n        throw new Error(\"The $.oc.table.datasource namespace is not defined. Make sure that the table.datasource.base.js script is loaded.\");\n\n    // CLASS DEFINITION\n    // ============================\n\n    var Base = $.oc.table.datasource.base,\n        BaseProto = Base.prototype\n\n    var Server = function(tableObj) {\n        Base.call(this, tableObj)\n\n        var dataString = tableObj.getElement().getAttribute('data-data')\n\n        if (dataString === null || dataString === undefined)\n            throw new Error('The required data-data attribute is not found on the table control element.')\n\n        this.data = JSON.parse(dataString)\n    };\n\n    Server.prototype = Object.create(BaseProto)\n    Server.prototype.constructor = Server\n\n    Server.prototype.dispose = function() {\n        BaseProto.dispose.call(this)\n        this.data = null\n    }\n\n    /*\n     * Fetches records from the underlying data source and\n     * passes them to the onSuccess callback function.\n     * The onSuccess callback parameters: records, totalCount.\n     * Each record contains the key field which uniquely identifies\n     * the record. The name of the key field is defined with the table","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/table/assets/js/table.datasource.server.js#L9-L45","documentation":"Error \"The required data-data attribute is not found on the table control element.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/widgets/table/assets/js/table.datasource.server.js:27 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}