The purpose of this article is to investigate the second-order P-type iterative learning control (ILC) scheme in the presence of data loss for a class of linear discrete-time switched systems with disturbances. Employing the super-vector representation technique, the discrete-time linear switched system is reformulated as an input-output transmission equation. The robustness of the resulting switched system driven by a second-order P-type ILC scheme is guaranteed through the use of the super-vector representation technique. Importantly, the article also explores cases of data loss occurring during data transmission. The proposed methodology exhibits significantly improved convergence performance compared to the P-type ILC scheme (Yang et al., 2022, Robust finite-iteration tracking of discrete-time systems in repetitive process setting via ILC scheme. International Journal of Robust and Nonlinear Control, 32(5), 2585–2602. https://doi.org/10.1002/rnc.5782). Simulation examples are provided to demonstrate the effectiveness of the proposed scheme.