Please go to Sales>>E invoices>>Pending>>Click on “Auto Generate Now”>>Check.
Note: This will generate E-Invoices for all the transactions that are in pending status if the portal is not down.