Pdf invoice data to be extracted in excel using document understanding

i have been facing an issue by extracting 2 pdf invoice data into excel in two different sheet respectivly. but its not happening. in write range i am using “ClassificationResult(0).DocumentTypeId” .

data is being extracted in one sheet only. Please help.