Send List view data to google sheet

I have created a simple App. Extracts data from a Google Sheet and displays it in the listview (orange one). Then by clicking on each item in the orange list, that option is selected and added to the blue list below of that. Finally, after clicking the submit button, the blue list information will be saved in the second Google Sheet. But sometimes some data is not stored in the second Google sheet. Can you please guide me about this trouble? I have sent you the Algorithm image, program image, program source file, and Google Sheet addresses below. Thank you in advance.

Address of raw data :

Address for saving selected data:

Your loops in Button 4 and Button 5 are causing the problem. Either send each list element with a different request, or build all the comments to a valid list and send them all together will one call.