{"record":{"id":"b67e2081866c9ede","repo":"sqlmapproject/sqlmap","slug":"can-t-use-table-existence-check-because-of-detecte","errorCode":null,"errorMessage":"can't use table existence check because of detected invalid results (most likely caused by inability of the used injection to distinguish erroneous results)","messagePattern":"can't use table existence check because of detected invalid results \\(most likely caused by inability of the used injection to distinguish erroneous results\\)","errorType":"exception","errorClass":"SqlmapDataException","httpStatus":null,"severity":"error","filePath":"lib/utils/brute.py","lineNumber":82,"sourceCode":"def tableExists(tableFile, regex=None):\n    if kb.choices.tableExists is None and not any(_ for _ in kb.injection.data if _ not in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)) and not conf.direct:\n        warnMsg = \"it's not recommended to use '%s' and/or '%s' \" % (PAYLOAD.SQLINJECTION[PAYLOAD.TECHNIQUE.TIME], PAYLOAD.SQLINJECTION[PAYLOAD.TECHNIQUE.STACKED])\n        warnMsg += \"for common table existence check\"\n        logger.warning(warnMsg)\n\n        message = \"are you sure you want to continue? [y/N] \"\n        kb.choices.tableExists = readInput(message, default='N', boolean=True)\n\n        if not kb.choices.tableExists:\n            return None\n\n    result = inject.checkBooleanExpression(\"%s\" % safeStringFormat(BRUTE_TABLE_EXISTS_TEMPLATE, (randomInt(1), randomStr())))\n\n    if result:\n        errMsg = \"can't use table existence check because of detected invalid results \"\n        errMsg += \"(most likely caused by inability of the used injection \"\n        errMsg += \"to distinguish erroneous results)\"\n        raise SqlmapDataException(errMsg)\n\n    pushValue(conf.db)\n\n    if conf.db and Backend.getIdentifiedDbms() in UPPER_CASE_DBMSES:\n        conf.db = conf.db.upper()\n\n    message = \"which common tables (wordlist) file do you want to use?\\n\"\n    message += \"[1] default '%s' (press Enter)\\n\" % tableFile\n    message += \"[2] custom\"\n    choice = readInput(message, default='1')\n\n    if choice == '2':\n        message = \"what's the custom common tables file location?\\n\"\n        tableFile = readInput(message) or tableFile\n\n    infoMsg = \"performing table existence using items from '%s'\" % tableFile\n    logger.info(infoMsg)\n","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/brute.py#L64-L100","documentation":"Error \"can't use table existence check because of detected invalid results (most likely caused by inability of the used injection to distinguish erroneous results)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/brute.py:82 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"}