To be at cross-purposes

to misunderstand or to act counter to one another without intending it; - said of persons.

See also: cross-purpose