{"record":{"id":"a7048d3828a29140","repo":"usebruno/bruno","slug":"unable-to-locate-item","errorCode":null,"errorMessage":"Unable to locate item","messagePattern":"Unable to locate item","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js","lineNumber":981,"sourceCode":"            toast.success('Item renamed successfully');\n            resolve();\n          })\n          .catch((err) => reject(err));\n      });\n    };\n\nexport const cloneItem = (newName, newFilename, itemUid, collectionUid) => (dispatch, getState) => {\n  const state = getState();\n  const collection = findCollectionByUid(state.collections.collections, collectionUid);\n\n  return new Promise((resolve, reject) => {\n    if (!collection) {\n      throw new Error('Collection not found');\n    }\n    const collectionCopy = cloneDeep(collection);\n    const item = findItemInCollection(collectionCopy, itemUid);\n    if (!item) {\n      throw new Error('Unable to locate item');\n    }\n\n    if (isItemAFolder(item)) {\n      const parentFolder = findParentItemInCollection(collection, item.uid) || collection;\n\n      const folderWithSameNameExists = find(\n        parentFolder.items,\n        (i) => i.type === 'folder' && trim(i?.filename) === trim(newFilename)\n      );\n\n      if (folderWithSameNameExists) {\n        return reject(new Error('Duplicate folder names under same parent folder are not allowed'));\n      }\n\n      set(item, 'name', newName);\n      set(item, 'filename', newFilename);\n      set(item, 'root.meta.name', newName);\n      set(item, 'root.meta.seq', parentFolder?.items?.length + 1);","sourceCodeStart":963,"sourceCodeEnd":999,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js#L963-L999","documentation":"Error \"Unable to locate item\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:981 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reload the collection to refresh the item tree.","Confirm the item was not deleted or moved outside Bruno."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}