You need to check with FCL/ERP what the code is for User Defined Category "X" that you're trying to import and then in Safe Financials check that the code exists.
To do this:
Click Sales Ledger then click Set up.
Check the user defined codes.
To create a code, right click and select Create Record.
Fill in the relevant fields and click Save.
Reattempt the import.
