Hi CRM Kings and Queens,
I have a windows app that reads a CSV file and writes the data into CRM. Since updating the dlls due to the MS deprecation, the program has since stopped to work. Ideally i need help and alternatives with the following script which is falling to read the Excel file and always returns 0
byte[] fileContent = Convert.FromBase64String(attDocument.GetAttributeValue<string>("documentbody"));
CachedCsvReader CSV = new CachedCsvReader(new StreamReader(new MemoryStream(fileContent)), true);
DataImport DI = new DataImport(ref service, attDocument.GetAttributeValue<EntityReference>("objectid").Id, CSV);
DI.ImportData();
I am not a developer and didn't write the script so wont be able to explain why the above code was written in such a way. Ideas and explanations are welcome. And no, there is valid reason why the out of the box import tool is not being used.
Many Thanks,






