View Issue Details

IDProjectCategoryView StatusLast Update
0003798JEDI VCL00 JVCL Componentspublic2007-01-04 03:19
ReporteralexptpAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003798: When you load SCV file using JvCsvDataSet1.LoadFromFile() you will get runtime error - "Field "..." found in file but not ..."
DescriptionWhen you load SCV file using JvCsvDataSet1.LoadFromFile() you will get runtime error - "Field "..." found in file but not in field definition".
Error happens when you try to open second (!) CSV file with field structure different from first one. Somehow old field definition was carried over to open new file.
You can see the error when you use CsvDataDemo from Examples folder.
When you open first CSV file, all works fine, when you open second CSV file with diff structure you will see an error.
Additional InformationI was able to fix the issue adding following code:

      FHeaderRow:=aCsvFieldDef;

After line # 2591 in file JvCsvData.pas.
TagsNo tags attached.

Activities

obones

2006-07-07 02:26

administrator   ~0009777

Please provide the zipped sources of a sample application showing this "problem"

2006-07-10 09:37

 

files1.zip (317,544 bytes)

alexptp

2006-07-10 09:37

reporter   ~0009781

I attached file:
- sample project
- 2 CSV test files
- Word doc with screenshots

obones

2006-09-29 07:22

administrator   ~0010246

File has changed since then, please first test with the latest SVN version from http://jvcl.sf.net/daily/

If the problem is still there, please provide a bit more context around the line you changed so that I can find it in the current sources.

obones

2007-01-04 03:18

administrator   ~0010513

No news, I'm assuming this is fixed in the latest revision

Issue History

Date Modified Username Field Change
2006-07-06 14:03 alexptp New Issue
2006-07-07 02:26 obones Note Added: 0009777
2006-07-07 02:26 obones Status new => feedback
2006-07-10 09:37 alexptp File Added: files1.zip
2006-07-10 09:37 alexptp Note Added: 0009781
2006-09-29 07:22 obones Note Added: 0010246
2007-01-04 03:18 obones Status feedback => resolved
2007-01-04 03:18 obones Fixed in Version => Daily / SVN
2007-01-04 03:18 obones Resolution open => fixed
2007-01-04 03:18 obones Assigned To => obones
2007-01-04 03:18 obones Note Added: 0010513