Hi Hoysala,
1. You will have to post invoices first to be able to process it successfully. Once you put the actual invoice details in the file, it should work fine. Please share the result, in case of any error.
2. In record type 4, the number 1 and 9 are system generated value, where 9 refers to last record of record type 4.
Regards,
Gaurav