Cause
While closing your accounts in order to create a new year, an non-existing account was indicated for the breakdown of Profit/Loss for the accounting period.
Solution
Check that there is an account assigned to the result for the accounting period in the Accounts table. If not you must create one.