Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Loading csv file into crm programmatically through custom workflow activity

$
0
0

Hi,

I have a custom workflow activity that reads a csv file into datatable and I am trying to load this to crm 2011 onpremise.  The workflow kicks in but I get the following error:

Workflow paused due to error: Unhandled Exception: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

I am using the following in VS : dbConn = newOdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ="+ csvDirectory +";");

The code works if using windows app.  It prints the data to screen but cannot load to CRM

 


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>