Spark error generation.