{"record":{"id":"c02df72c274068a0","repo":"usebruno/bruno","slug":"not-able-to-locate-item","errorCode":null,"errorMessage":"Not able to locate item","messagePattern":"Not able to locate item","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js","lineNumber":225,"sourceCode":"  });\n};\n\nexport const saveFile = (content, itemUid, collectionUid, silent = false) => async (dispatch, getState) => {\n  const state = getState();\n  const collection = findCollectionByUid(state.collections.collections, collectionUid);\n  const tempDirectory = state.collections.tempDirectories?.[collectionUid];\n\n  if (!collection) {\n    throw new Error('Collection not found');\n  }\n\n  const collectionCopy = cloneDeep(collection);\n  const item = findItemInCollection(collectionCopy, itemUid);\n\n  // Item is not used to save the bru file\n  // This is to validate if the bru content is associated with a valid item\n  if (!item) {\n    throw new Error('Not able to locate item');\n  }\n\n  const isTransient = tempDirectory && item.pathname.startsWith(tempDirectory);\n  if (isTransient) {\n    if (!silent) {\n      dispatch(addSaveTransientRequestModal({ item, collection }));\n    }\n    throw new Error('Cannot save transient request');\n  }\n\n  const { ipcRenderer } = window;\n  try {\n    if (['http-request', 'graphql-request'].includes(item?.type)) {\n      let json = await ipcRenderer.invoke('renderer:convert-to-json', item, content, collection.format);\n      delete json.isTransient;\n      await itemSchema.validate(json);\n    }\n  } catch (err) {","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js#L207-L243","documentation":"Error \"Not able to locate item\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:225 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reload the collection so the item list matches disk state.","Check the item was not renamed or deleted 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"}