We have elucidated an important reaction step in the formation of halide-doped SnO2 TCOs, namely a highly selective halide exchange process which takes place even in the most unfavourable of reaction conditions.