I have experienced this on both Dynamo and Mina. When the character is near a wall you cannot use the second ability. It says no target and refuses to cast. No idea if this is intentional or not, but it prevents Dynamo teleporter tech because he is surrounded by walls.