When CaCl2 is doped with AgCl, a metal excess defect is created as 2Ag+ ions are replaced by 1 Ca2+ ion.