I wrote some code to interact with Marketing Cloud's SOAP API to create a List and populate Subscribers by importing a CSV file. The code works fine for CSVs up to a couple of thousand records. I create a List record, then a SubscriberList record. Then I pass in an array of records, loop through the array of records, and then create Subscriber records.
However, when I tried running my code with the last list (28k rows), it failed. Is there a recommended way to programmatically create a List and Subscriber records by importing a large CSV?