sqlmapproject/sqlmap · error · SqlmapSyntaxException
switch '--dump' is incompatible with switch '--dump-all'
Error message
switch '--dump' is incompatible with switch '--dump-all'
What it means
Startup mutual-exclusivity guard in _basicOptionValidation: --dump (with --tables/-T semantics, conf.dumpTable) and --dump-all (conf.dumpAll) both request data extraction but at different scopes; combining them is redundant and ambiguous, so it is rejected.
Solutions
- Use only --dump to extract specific tables/columns
- Use only --dump-all to extract everything
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:2964 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/0dcb30dcfadd527e.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:2964
raise SqlmapSyntaxException(errMsg)
if conf.crawlExclude:
try:
re.compile(conf.crawlExclude)
except Exception as ex:
errMsg = "invalid regular expression '%s' ('%s')" % (conf.crawlExclude, getSafeExString(ex))
raise SqlmapSyntaxException(errMsg)
if conf.scope:
try:
re.compile(conf.scope)
except Exception as ex:
errMsg = "invalid regular expression '%s' ('%s')" % (conf.scope, getSafeExString(ex))
raise SqlmapSyntaxException(errMsg)
if conf.dumpTable and conf.dumpAll:
errMsg = "switch '--dump' is incompatible with switch '--dump-all'"
raise SqlmapSyntaxException(errMsg)
if conf.threads > MAX_NUMBER_OF_THREADS and not conf.get("skipThreadCheck"):
errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS
raise SqlmapSyntaxException(errMsg)
if conf.forms and not any((conf.url, conf.googleDork, conf.bulkFile)):
errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g' or '-m'"
raise SqlmapSyntaxException(errMsg)
if conf.crawlExclude and not conf.crawlDepth:
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
raise SqlmapSyntaxException(errMsg)
if conf.safePost and not conf.safeUrl:
errMsg = "option '--safe-post' requires usage of option '--safe-url'"
raise SqlmapSyntaxException(errMsg)
if conf.safeFreq and not any((conf.safeUrl, conf.safeReqFile)):View on GitHub (pinned to 0a35b20e39)