Posts
1150
Comments
891
Trackbacks
1
The given value of type String from the data source cannot be converted to type nvarchar of the specified target column

I ran into this error in one of my bulk insert method calls after updating an EF model, where I added some columns, changed the name of one, etc. in the underlying data source. 

This error can occur if you mess up datatypes in such a way as to cause truncation, but I knew that wasn’t it (since I didn’t change any datatypes).

After sleeping on it, I simply deleted the offending entity from my EF model and pulled it down again.  Voila.

Gotta love black magic and secret sauce.

posted on Friday, March 25, 2016 10:22 AM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 5 and type the answer here: