The spreadsheet BlankMissing.xlsx has a blank in the key column SET, in the row corresponding to cost value 5. This causes the set member Missing to be created:
ampl: reset;
ampl: set S;
ampl: param cost {S};
ampl: table Cost IN "amplxl" "BlankMissing.xlsx": S <- [SET], cost;
ampl: read table Cost;
ampl: display cost;
cost [*] :=
A 1
B 2
C 3
D 4
Missing 5
;
Eventually the user sees an error of some sort in processing the model, but it is hard to trace that error back to the cause. The amplxl interface could instead report an error immediately when there is a blank in a key column for the table being read.
In some situations where there is more than one blank in the key column, an error message does appear immeidately, but it is not specific:
Error reading table Cost with table handler amplxl:
Could not parse data
The spreadsheet BlankMissing.xlsx has a blank in the key column
SET, in the row corresponding tocostvalue 5. This causes the set memberMissingto be created:Eventually the user sees an error of some sort in processing the model, but it is hard to trace that error back to the cause. The amplxl interface could instead report an error immediately when there is a blank in a key column for the table being read.
In some situations where there is more than one blank in the key column, an error message does appear immeidately, but it is not specific: