I am facing this error “Document Type must be equal to ‘Invoice’ in Sales Line” when trying to post a sales document.
Ahsan Ali Answered question
This error means the sales line expects the document type to be “Invoice,” but it’s not set correctly.
To resolve it:
-
Open the Sales Header and ensure the Document Type is set to Invoice.
-
If the type is Order or Quote, either convert it to an invoice or use the correct posting method.
-
If you’re modifying lines via codeunit or extension, ensure you’re setting the type properly.
Ahsan Ali Answered question
