High-quality thin films of cathode material LiCoPO4 are analyzed using a combination of STEM-EELS, XRD, and atomistic simulations. Capacity fade during cycling is accompanied by formation of large numbers of cation exchange defects, especially at surfaces, blocking the preferred Li-ion migration pathways.