To record the caused of failure in generated xml