{"record":{"id":"5127c630614433b4","repo":"sqlmapproject/sqlmap","slug":"unable-to-write-to-the-results-file-s-s","errorCode":null,"errorMessage":"unable to write to the results file '%s' ('%s'). ","messagePattern":"unable to write to the results file '(.+?)' \\('(.+?)'\\)\\. ","errorType":"exception","errorClass":"SqlmapSystemException","httpStatus":null,"severity":"error","filePath":"lib/controller/controller.py","lineNumber":341,"sourceCode":"        if injection.place is None or injection.parameter is None:\n            continue\n\n        key = (injection.place, injection.parameter, ';'.join(injection.notes))\n        if key not in results:\n            results[key] = []\n\n        results[key].extend(list(injection.data.keys()))\n\n    try:\n        for key, value in results.items():\n            place, parameter, notes = key\n            line = \"%s,%s,%s,%s,%s%s\" % (safeCSValue(kb.originalUrls.get(conf.url) or conf.url), place, parameter, \"\".join(techniques[_][0].upper() for _ in sorted(value)), notes, os.linesep)\n            conf.resultsFP.write(line)\n\n        conf.resultsFP.flush()\n    except IOError as ex:\n        errMsg = \"unable to write to the results file '%s' ('%s'). \" % (conf.resultsFile, getSafeExString(ex))\n        raise SqlmapSystemException(errMsg)\n\n@stackedmethod\ndef start():\n    \"\"\"\n    This function calls a function that performs checks on both URL\n    stability and all GET, POST, Cookie and User-Agent parameters to\n    check if they are dynamic and SQL injection affected\n    \"\"\"\n\n    if conf.hashFile:\n        crackHashFile(conf.hashFile)\n\n    if conf.direct:\n        initTargetEnv()\n        setupTargetEnv()\n        action()\n        return True\n","sourceCodeStart":323,"sourceCodeEnd":359,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/controller/controller.py#L323-L359","documentation":"Error \"unable to write to the results file '%s' ('%s'). \" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/controller/controller.py:341 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}