If you cannot compile an invoice, it may be that the delivery note must first be approved, for example in the case of credit notes.

See the program: Sales | Sales master data Order types


Then look through the program: Sales | Invoicing Approve credit notes or the relevant delivery note is in between. Approve the delivery note and click on 'Process'.

Now you can make an invoice from that delivery note.