at cross purposes

[at cross purposes] {adv. phr.} With opposing meanings or aims; with opposing effect or result; with aims which hinder or get in each other's way.

Tom's parents acted at cross purposes in advising him; his father wanted him to become a doctor; but his mother wanted him to become a minister.