This generally occurs with either a new Part or Customer/Supplier and will be because the analysis code that would be used at invoicing does not exist. Check:
That you are using the correct Order type.
The parts used on the order lines are correct.
In the case of a new customer/supplier that the analysis codes are set up correctly against them
In the case of a new product that the analysis codes are set up correctly against them
It may help to check against existing products and customers/suppliers that it works for.
It may be that you are using customer with a different currency and sometimes that is added at the end of the analysis code used for posting, these can be seen in the interface code that is set against the Order type.
You can see the Analysis codes in Creditors, Analysis you may need to add it there.
