SAP Message AO307 - Plant &1 is not assigned to company code &2 - please correct

Diagnosis
You entered plant &V1& and company code &V2&.

System Response
The entry of company code &V2& and plant &V1& is not allowed.

Procedure
Correct either the plant entered (&V1&) or the company code (&V2&).