{"record":{"id":"311948fcade01c40","repo":"Budibase/budibase","slug":"datasource-integration-does-not-support-verb-qu","errorCode":null,"errorMessage":"Datasource integration does not support verb: ${queryVerb}","messagePattern":"Datasource integration does not support verb: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/server/src/threads/query.ts","lineNumber":228,"sourceCode":"        query.rawPath = rawPath\n      }\n      if (this.includeRequest && previewSource) {\n        preview = await this.buildPreview(previewSource, parameters).catch(\n          err => {\n            console.warn(\"Failed to build request preview\", err)\n            return undefined\n          }\n        )\n      }\n    }\n    // Add pagination values for REST queries\n    if (this.pagination) {\n      query.paginationValues = this.pagination\n    }\n\n    const fn = integration[queryVerb]\n    if (!fn) {\n      throw new Error(\n        `Datasource integration does not support verb: ${queryVerb}`\n      )\n    }\n\n    let output = threadUtils.formatResponse(\n      await fn.bind(integration)(query, {\n        includeRequest: this.includeRequest,\n        previewFields: preview?.fields,\n        previewConfig: preview?.config,\n      })\n    )\n    let rows = output as Row[],\n      info = undefined,\n      extra = undefined,\n      pagination = undefined\n    if (threadUtils.hasExtraData(output)) {\n      rows = output.data\n      info = output.info","sourceCodeStart":210,"sourceCodeEnd":246,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/threads/query.ts#L210-L246","documentation":"Query execution looks up the handler for the query's verb on the datasource's integration class (integration[queryVerb]). Datasource integrations only implement the verbs they support (e.g. REST supports read/create/update/delete; SQL supports read/create/update/delete; some integrations lack certain verbs). If the verb function is missing, a plain Error naming the verb is thrown.","triggerScenarios":"Executing a query whose queryVerb (e.g. 'write', 'patch', or a verb the integration never defined) has no corresponding method on the integration resolved from the datasource source — e.g. running a query with verb 'create' against an integration that only implements read, or a verb string that doesn't match any integration method.","commonSituations":"Queries built or imported from other datasource types; verb renamed/changed across Budibase versions; REST queries saved with an unusual method; scripts calling the query executor directly with an arbitrary verb string.","solutions":["Check the query's datasource source and its integration to see which verbs are implemented; re-create the query with a supported verb (read/create/update/delete)","Open the query in the builder and fix its verb to one the datasource supports","If importing queries, remap unsupported verbs to equivalents before execution"],"exampleFix":"// before\nawait sdk.queries.execute({ ...query, queryVerb: 'patch' }) // integration has no 'patch'\n// after\nawait sdk.queries.execute({ ...query, queryVerb: 'update' })","handlingStrategy":"validation","validationCode":"const integration = integrations[datasource.source]\nif (!integration?.[query.queryVerb]) {\n  throw new Error(`Verb '${query.queryVerb}' not supported by ${datasource.source}`)\n}","typeGuard":"function verbSupported(integration, verb) {\n  return typeof integration?.[verb] === 'function'\n}","tryCatchPattern":"try {\n  await sdk.queries.execute(queryId, params)\n} catch (e) {\n  if (e?.message?.startsWith('Datasource integration does not support verb')) {\n    // recreate query with a supported verb\n  } else throw e\n}","preventionTips":["Check the integration's supported verbs when building queries programmatically","Re-map verbs when importing queries between datasource types","Keep query verbs limited to read/create/update/delete unless the integration documents more"],"tags":["queries","datasource-integration","unsupported-operation"],"backgroundTag":"unsupported-query-verb","analyzedSha":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}