AR, get shipment error

Hello everyone,
We are fetching the auto invoice from the ‘Get shipment’ in AR invoice entry.
It got created.
But after some amendments, when we are trying to save, the below error generates.

image

Any help will be great.

Thanks in advance.
Rishi

It looks like one of the invoices has a transaction document type that is not valid for that customer.