{"record":{"id":"db9dbeba49ebd589","repo":"appsmithorg/appsmith","slug":"unable-to-run-action-actiontorun-name","errorCode":null,"errorMessage":"Unable to run action: ${actionToRun.name}","messagePattern":"Unable to run action: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"app/client/src/sagas/OneClickBindingSaga.ts","lineNumber":249,"sourceCode":"            true,\n            undefined,\n            ActionExecutionContext.ONE_CLICK_BINDING,\n          ),\n        );\n\n        const runResponse: ReduxAction<unknown> = yield take([\n          ReduxActionTypes.RUN_ACTION_SUCCESS,\n          ReduxActionErrorTypes.EXECUTE_PLUGIN_ACTION_ERROR,\n          ReduxActionErrorTypes.RUN_ACTION_ERROR,\n        ]);\n\n        if (\n          [\n            ReduxActionErrorTypes.EXECUTE_PLUGIN_ACTION_ERROR,\n            ReduxActionErrorTypes.RUN_ACTION_ERROR,\n          ].includes(runResponse.type)\n        ) {\n          throw new Error(`Unable to run action: ${actionToRun.name}`);\n        }\n      }\n\n      const { getPropertyUpdatesForQueryBinding } =\n        WidgetFactory.getWidgetMethods(widget.type);\n\n      const createdQueryNames = createdActions.map((d) => d.name);\n\n      const queryBindingConfig: WidgetQueryConfig = {};\n\n      const { alertMessage } = action.payload;\n\n      if (createdQueryNames.includes(queryNameMap[QUERY_TYPE.SELECT])) {\n        queryBindingConfig[QUERY_TYPE.SELECT] = {\n          data: `{{${queryNameMap[QUERY_TYPE.SELECT]}.data}}`,\n          run: `{{\n            ${queryNameMap[QUERY_TYPE.SELECT]}.run();\n            ${","sourceCodeStart":231,"sourceCodeEnd":267,"githubUrl":"https://github.com/appsmithorg/appsmith/blob/8cd9021c24cdbea1c3c12c966073708e83db60c2/app/client/src/sagas/OneClickBindingSaga.ts#L231-L267","documentation":"Error thrown by the one-click-binding flow when running the SELECT/TOTAL_RECORD query returns EXECUTE_PLUGIN_ACTION_ERROR or RUN_ACTION_ERROR instead of RUN_ACTION_SUCCESS. The created actions exist and were fetched, but executing them to prime the widget binding failed, so the saga cannot compute the binding config.","triggerScenarios":"The generated query has a syntax error; the datasource connection fails at execute time; permissions allow create but not execute; the upstream DB rejects the generated SQL; a column referenced in the generated query no longer exists.","commonSituations":"Schema drift between binding time and run time; datasource credentials expired; row-level security blocks the SELECT; reserved keyword not quoted by the query generator.","solutions":["Open the generated query in the editor and run it manually — the response error will show the real cause.","Re-test the datasource connection and re-enter credentials if expired.","Check the user role has execute permission on the action.","If the SQL is malformed (reserved word, missing column), edit the query by hand and re-run."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Manually run the generated query in the editor first; only bind after it returns data\nconst ok = await runQueryManually(queryName);\nif (!ok) { showAlert('Query failed: ' + lastError, 'error'); return; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run the generated query by hand before binding to surface SQL errors.","Keep datasource credentials current; re-test the connection.","Verify execute permission on the action for the active user role.","Watch for schema drift after migrations."],"tags":["one-click-binding","query-execution","datasource","sql"],"backgroundTag":null,"analyzedSha":"8cd9021c24cdbea1c3c12c966073708e83db60c2","analyzedAt":"2026-08-12T22:14:19.293Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}