Migrate 21.4 to 23.5 ImportCustomObjects not working

I’m using ImportCustomObjects in 21.4 and it was working great. But now I switched 23.5 and it’s not binding the data just the header. Not sure what’s happening. The code is below:

string dateFormat = “M/D/YYYY”
sheet.Cells.ImportCustomObjects(list: collections, propertyNames: header.ToArray(), isPropertyNameShown: true,
firstRow: 0, firstColumn: 0, rowNumber: collections.Count, insertRows: true, dateFormatString: dateFormat,
convertStringToNumber: false);

Is there something else I need to do?

@tkurian,

Could you please share complete (runnable) sample code with sample file(s), we will check it soon.

PS. please zip the Excel or other files prior attaching.