Validate your general ledger setup:
1. General Ledger - Setup - Ledger. Validate the account structures configured.
2. General Ledger - Setup - Chart of Accounts - Configure Account Structures. From the structures in 1. validate the exchange rate account is set in a valid structure.