{"record":{"id":"15193eb41b968a9e","repo":"overleaf/overleaf","slug":"you-are-not-the-user-who-originally-imported-this","errorCode":null,"errorMessage":"You are not the user who originally imported this file","messagePattern":"You are not the user who originally imported this file","errorType":"http","errorClass":"NotOriginalImporterError","httpStatus":400,"severity":"error","filePath":"services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs","lineNumber":242,"sourceCode":"      res.status(422)\n      if (error.cause instanceof FileTooLargeError) {\n        plainTextResponse(res, 'File too large')\n      } else {\n        plainTextResponse(\n          res,\n          `Your URL could not be reached (${\n            error.info?.status || error.cause?.info?.status\n          } status code). Please check it and try again.`\n        )\n      }\n    } else if (error instanceof InvalidUrlError) {\n      res.status(422)\n      plainTextResponse(\n        res,\n        'Your URL is not valid. Please check it and try again.'\n      )\n    } else if (error instanceof NotOriginalImporterError) {\n      res.status(400)\n      plainTextResponse(\n        res,\n        'You are not the user who originally imported this file'\n      )\n    } else if (error instanceof FeatureNotAvailableError) {\n      res.status(400)\n      plainTextResponse(res, 'This feature is not enabled on your account')\n    } else if (error instanceof RemoteServiceError) {\n      if (error.info?.statusCode === 403) {\n        res.status(400).json({ relink: true })\n      } else {\n        res.status(502)\n        plainTextResponse(res, 'The remote service produced an error')\n      }\n    } else if (error instanceof FileCannotRefreshError) {\n      res.status(400)\n      plainTextResponse(res, 'This file cannot be refreshed')\n    } else if (error.message === 'project_has_too_many_files') {","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/overleaf/overleaf/blob/28ad3b03b71cb4311decdcb55c36b33ec10d72db/services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs#L224-L260","documentation":"Branch of LinkedFilesController.handleError mapping NotOriginalImporterError to 400: only the user who originally imported the linked file may refresh it; a different logged-in user attempted the refresh.","triggerScenarios":"Thrown at services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ask the original importer to refresh the file","Re-create the linked file under the current user so they become the importer"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"28ad3b03b71cb4311decdcb55c36b33ec10d72db","analyzedAt":"2026-09-03T02:10:22.807Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}