appsmithorg/appsmith · error · Error
Could not find action to copy
Error message
Could not find action to copy
What it means
Generic Error thrown by the copy-action flow when actionObject is falsy before building the duplicate payload. The source action to copy could not be located by the preceding selectors, so Object.assign and the network call are skipped.
Source
Thrown at app/client/src/sagas/ActionSagas.ts:787
if (!parentEntityId || !parentEntityKey) return;
const newName: string = yield select(getNewEntityName, {
prefix: name,
parentEntityId: destinationEntityId,
parentEntityKey,
suffix: "Copy",
startWithoutIndex: true,
});
const destinationEntityIdInfo = generateDestinationIdInfoForQueryDuplication(
destinationEntityId,
parentEntityKey,
);
if (objectKeys(destinationEntityIdInfo).length === 0) return;
try {
if (!actionObject) throw new Error("Could not find action to copy");
// At this point the actionObject.id will be the id of the action to be copied
// We enhance the payload with eventData to track the action being copied
actionObject = enhanceRequestPayloadWithEventData(
actionObject,
action.type,
) as Action;
const copyAction = Object.assign({}, actionObject, {
name: newName,
...destinationEntityIdInfo,
}) as Partial<Action>;
// Indicates that source of action creation is copy action
copyAction.source = ActionCreationSourceTypeEnum.COPY_ACTION;
delete copyAction.id;
delete copyAction.baseId;View on GitHub (pinned to 8cd9021c24)
Solutions
- Refresh the page and retry the copy.
- Confirm the source action is still listed in the entity explorer before copying.
- If reproducing consistently, check that the redux action payload carries a valid source id.
Defensive patterns
Strategy: validation
Validate before calling
// Before invoking copy, confirm the source action is present
if (!sourceAction) {
showAlert('Source action not found; refresh and try again', 'error');
return;
} Prevention
- Do not delete the source action while a copy is pending.
- Refresh the editor after collaborative deletes before copying.
- Avoid rapid copy of the same row from multiple tabs.
When it happens
Trigger: User triggers 'Copy query' on an action whose record was already removed from the store; the source id resolved to undefined due to a selector mismatch; copy invoked during a page switch.
Common situations: Right-click copy on a row that was just deleted by a collaborator; git branch switch left stale state; bulk delete outran the copy dispatch.
Related errors
AI-assisted analysis of appsmithorg/appsmith@8cd9021c24 (2026-08-12).
Data as JSON: /api/errors/970c0dd27c0b6979.
Report an issue: GitHub.