{"record":{"id":"75119a2eef1bd102","repo":"medusajs/medusa","slug":"no-request-claim-found-for-claim-input-claim-id","errorCode":null,"errorMessage":"No request claim found for claim ${input.claim_id} in order change ${orderChange.id}","messagePattern":"No request claim found for claim (.+?) in order change (.+?)","errorType":"validation","errorClass":"Error","httpStatus":500,"severity":"error","filePath":"packages/core/core-flows/src/order/workflows/claim/update-claim-item.ts","lineNumber":104,"sourceCode":"  async function (\n    {\n      order,\n      orderChange,\n      orderClaim,\n      input,\n    }: UpdateClaimItemValidationStepInput,\n    context\n  ) {\n    throwIfIsCancelled(order, \"Order\")\n    throwIfIsCancelled(orderClaim, \"Claim\")\n    throwIfOrderChangeIsNotActive({ orderChange })\n\n    const associatedAction = (orderChange.actions ?? []).find(\n      (a) => a.id === input.action_id\n    ) as OrderChangeActionDTO\n\n    if (!associatedAction) {\n      throw new Error(\n        `No request claim found for claim ${input.claim_id} in order change ${orderChange.id}`\n      )\n    } else if (associatedAction.action !== ChangeActionType.WRITE_OFF_ITEM) {\n      throw new Error(`Action ${associatedAction.id} is not claiming the item`)\n    }\n  }\n)\n\nexport const updateClaimItemWorkflowId = \"update-claim-item\"\n/**\n * This workflow updates a claim item, added to the claim from an order item.\n * It's used by the [Update Claim Item Admin API Route](https://docs.medusajs.com/api/admin/claims/update-a-claim-item).\n * \n * You can use this workflow within your customizations or your own custom workflows, allowing you to update a claim item\n * in your custom flows.\n * \n * @example\n * const { result } = await updateClaimItemWorkflow(container)","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/medusajs/medusa/blob/5e06e544a296b9033f20f71f11c559f81a0e5739/packages/core/core-flows/src/order/workflows/claim/update-claim-item.ts#L86-L122","documentation":"Thrown when updating a claim item (write-off/claimed item): no order change action with the given action_id exists in the claim's order change. The workflow needs the existing WRITE_OFF_ITEM action to modify the claimed quantity.","triggerScenarios":"Calling updateClaimItemWorkflow with an action_id not present in the claim's order change actions — stale id, different claim, or the order change was already confirmed/canceled.","commonSituations":"Editing claim items after claim confirmation; using an action id obtained from an exchange's order change; concurrent edit where the action was removed.","solutions":["Fetch the claim's order change and confirm it's still pending with the action present","Use an action_id of type WRITE_OFF_ITEM from that same claim","If the claim is confirmed, create a new claim instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"const action = (orderChange.actions ?? []).find((a) => a.id === input.action_id)\nif (!action) { /* refetch claim / skip */ }","typeGuard":null,"tryCatchPattern":"try { await updateClaimItemWorkflow(scope).run({ input }) } catch (e) { if (/No request claim found/.test(e.message)) await refetchClaim() else throw e }","preventionTips":["Ensure claim order change is still pending before edits","Scope action ids to the claim being edited"],"tags":["order","claim","order-change","validation"],"backgroundTag":"order-change-action-not-found","analyzedSha":"5e06e544a296b9033f20f71f11c559f81a0e5739","analyzedAt":"2026-08-27T07:24:39.599Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}