The invoice is valid to you and invalid to the portal
A missing HSN on one line, a state code that does not match the buyer's GSTIN, a unit of measure outside the permitted list, or a rounding difference of a rupee. Each rejects the whole document, and the message rarely names the field in plain language.