Error Message
After clicking Post on ER0002 [Expense Report], Business Central shows the error and the report is not posted.

Cause in Source Code Setup
Source Code Setup tells Business Central which Source Code to stamp on the entries of each area. For Expense Management the setting is Expense in the Employees section. If it is empty, the posting cannot continue.
Open Source Code Setup and scroll to the Employees section. The Expense field is empty.

Solution
Create a Source Code for expenses if you do not have one yet. In Source Codes, add a new line, for example EXPENSE with the description Expense.

Open Source Code Setup, go to Employees, and select EXPENSE in the Expense field.

Result
Post ER0002 again. The Expense Report is posted as PER0002 and moved to Posted Expense Report.

If posting then stops with another error, it is a different missing setup item and not related to the Source Code. The Employee Posting Group and the Expense Posting Group must also have their G/L accounts filled in.
Hope so this is Helpful 😃






