You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to read and get data from a .csv file but i always receive the error message "System.Dynamic.ExpandoObject' doesnt contain a definition for 'xxxxxx' " when i try to to read the record.
public void Process()
{
using (StreamReader input = File.OpenText(InputfilePath))
using (CsvReader csvReader = new CsvReader(input, CultureInfo.InvariantCulture))
{
csvReader.Read();
IEnumerable records = csvReader.GetRecords();
This discussion was converted from issue #1502 on December 11, 2020 21:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Im trying to read and get data from a .csv file but i always receive the error message "System.Dynamic.ExpandoObject' doesnt contain a definition for 'xxxxxx' " when i try to to read the record.
public void Process()
{
using (StreamReader input = File.OpenText(InputfilePath))
using (CsvReader csvReader = new CsvReader(input, CultureInfo.InvariantCulture))
{
csvReader.Read();
IEnumerable records = csvReader.GetRecords();
My csv file contains the next data:
OrderNum,CustomerNum,Desc,Precip
42, 5, 62, 10
43, 6, 63, 85
44, 7, 64, 86
Beta Was this translation helpful? Give feedback.
All reactions