Dex description:
A PORYGON is copy-protected so it cannot be duplicated.
So I was wondering… Will Transform fail if used on Porygon?
Ditto can transform into Porygon as proven here. The Dex description is most likely referring to the fact that Porygon is made entirely of coding, and that the coding itself cannot be copied.