fix breakage
Throw exception when specifying batch index configuration and not building