Limit item or line in credit memo - Netsuite

I’m facing an issue with uploading a credit memo (return invoice) to ZATCA. Our team attempted to upload a credit memo invoice that contains over 1,000 line items. The process took a very long time, and eventually, we received an error from ZATCA.

Could you please clarify if there is a limit on the number of lines or items allowed when uploading to ZATCA? Additionally, what solutions or recommendations do you suggest for handling such large invoices?

Looking forward to your guidance.

@Kjano there is no limit on the number of lines. Limit exists only on the size that payload shouldn’t exceed 10MB. Try splitting credit note into 2 or 3 and try again.

But how can I upload it with the same size as a normal invoice and have it accepted?

First you need to determine if the content can be grouped together and only consolidated aggregates can be covered on XML. Tax Invoices are not intended to cover bill of quantities / bill of material level details. Such details can be appended in human readable form of invoice (in PDF). Try to limit the size within 10MB and it should go through.