sqlmapproject/sqlmap · error · SqlmapSyntaxException

option '--union-values' is incompatible with option…

Error message

option '--union-values' is incompatible with option '--union-char'

What it means

Validation guard in _basicOptionValidation: both --union-values (--uValues, explicit UNION payload column values) and --union-char (--uChar, single filler character) were supplied; they define the UNION payload columns in conflicting ways.

Solutions

  1. Keep only --union-char or only --union-values
  2. Use --union-values when specific per-column values are needed; --union-char for a simple filler
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at lib/core/option.py:2821 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/08a1752b0de4c327. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/option.py:2821

        errMsg = "value for option '--first' (firstChar) must be smaller than or equal to value for --last (lastChar) option"
        raise SqlmapSyntaxException(errMsg)

    if conf.proxyFile and not any((conf.randomAgent, conf.mobile, conf.agent, conf.requestFile)):
        warnMsg = "usage of switch '--random-agent' is strongly recommended when "
        warnMsg += "using option '--proxy-file'"
        logger.warning(warnMsg)

    if conf.textOnly and conf.nullConnection:
        errMsg = "switch '--text-only' is incompatible with switch '--null-connection'"
        raise SqlmapSyntaxException(errMsg)

    if conf.http2 and any((conf.tor, conf.proxy and conf.proxy.lower().startswith("socks"))):
        errMsg = "HTTP/2 support is currently incompatible with SOCKS/Tor proxies"
        raise SqlmapSyntaxException(errMsg)

    if conf.uValues and conf.uChar:
        errMsg = "option '--union-values' is incompatible with option '--union-char'"
        raise SqlmapSyntaxException(errMsg)

    if conf.base64Parameter and conf.tamper:
        errMsg = "option '--base64' is incompatible with option '--tamper'"
        raise SqlmapSyntaxException(errMsg)

    if conf.eta and conf.verbose > defaults.verbose:
        errMsg = "switch '--eta' is incompatible with option '-v'"
        raise SqlmapSyntaxException(errMsg)

    if conf.secondUrl and conf.secondReq:
        errMsg = "option '--second-url' is incompatible with option '--second-req')"
        raise SqlmapSyntaxException(errMsg)

    if conf.direct and conf.url:
        errMsg = "option '-d' is incompatible with option '-u' ('--url')"
        raise SqlmapSyntaxException(errMsg)

    if conf.direct and conf.dbms:

View on GitHub (pinned to 0a35b20e39)