{"record":{"id":"dbbb6d08d3e80b4e","repo":"sqlmapproject/sqlmap","slug":"preprocess-script-s-does-not-exist","errorCode":null,"errorMessage":"preprocess script '%s' does not exist","messagePattern":"preprocess script '(.+?)' does not exist","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":988,"sourceCode":"def _setPreprocessFunctions():\n    \"\"\"\n    Loads preprocess function(s) from given script(s)\n    \"\"\"\n\n    if conf.preprocess:\n        for script in re.split(PARAMETER_SPLITTING_REGEX, conf.preprocess):\n            found = False\n            function = None\n\n            script = safeFilepathEncode(script.strip())\n\n            try:\n                if not script:\n                    continue\n\n                if not os.path.exists(script):\n                    errMsg = \"preprocess script '%s' does not exist\" % script\n                    raise SqlmapFilePathException(errMsg)\n\n                elif not script.endswith(\".py\"):\n                    errMsg = \"preprocess script '%s' should have an extension '.py'\" % script\n                    raise SqlmapSyntaxException(errMsg)\n            except UnicodeDecodeError:\n                errMsg = \"invalid character provided in option '--preprocess'\"\n                raise SqlmapSyntaxException(errMsg)\n\n            dirname, filename = os.path.split(script)\n            dirname = os.path.abspath(dirname)\n\n            infoMsg = \"loading preprocess module '%s'\" % filename[:-3]\n            logger.info(infoMsg)\n\n            if not os.path.exists(os.path.join(dirname, \"__init__.py\")):\n                errMsg = \"make sure that there is an empty file '__init__.py' \"\n                errMsg += \"inside of preprocess scripts directory '%s'\" % dirname\n                raise SqlmapGenericException(errMsg)","sourceCodeStart":970,"sourceCodeEnd":1006,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L970-L1006","documentation":"--preprocess loading: a listed preprocess script does not exist at the given path, so no request-preprocessing function can be loaded and SqlmapFilePathException aborts init.","triggerScenarios":"Thrown at lib/core/option.py:988 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the --preprocess path typo or use an absolute path","Verify the script file is readable by the sqlmap process","Remove the entry if preprocessing is not needed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}