AR Dept Cd cannot be different from value on Reference Transaction (A2091)

AR Dept Cd cannot be different from value on Reference Transaction (A2091)

Issue
When auto applying the RE is referenced on the vendor line. The accounting line does populate, however there is an error message because the accounting line populates an incorrect department number (XXX) . I tried to change it to the correct department (XXX) but still keep getting the same error. How can we resolve this or work around this issue?

Solution
Change the "AR Dept" code from incorrect to the correct department in the Vendor tab and the transaction should validate. The "AR Dept" code is found on the Vendor tab under "General Information".