Why do I receive the error: *** Error: Incompatible types -- Number of list elements exceeds number of fields, when I run a data driven testcase?
You have a record structure as follows:
[-] type REC_ExcelDS_ is record [ ] STRING Card [ ] STRING FirstName //Tran Type, [ ] STRING LastName //Terminal ID,
Adding an extra column of information, such as Address, in an Excel document data source, would require you to update the record structure in SilkTest, by adding a field to the record, to account for this extra column.
Therefore your record would then look like:
[-] type REC_ExcelDS_ is record [ ] STRING Card [ ] STRING FirstName [ ] STRING LastName [ ] STRING Address
If your data source file has no additional information and you receive this error it may indicate a corruption of the data source. Recreate your data source and update your data sources via the Windows Administrative Tools to point to the recreated data source.