>It will fail if the user is holding an item or if either Pokémon is behind a Substitute.
Source: Bulbapedia/ Pickpocket