Cause
In the Categories table, each category has a currency code. In the Transactions table, in the category column, a category was entered with a currency code different from the one indicated in the Categories table, Currency column.
Solution
Check the currency code in the Categories table and correct the currency code in the Transactions table.