DMI Year Mapping Group -- New Error Detection and Reporting
Phil Weinstein, 9-19-2013
These types of errors are now detected and reported when a DMI Year Mapping Group is invoked.
- Contains an Output DMI. (These Groups can contain only Input DMIs).
- Year map contains undefined Years in Database
- Year map contains invalid (out of range) Years in Database
The Years in Database validity criteria is based on these symbols defined in QtDmi/DmiMapGroup.hpp:
- static const int HIST_YEAR_UNDEF_VALUE = 0;
- static const int HIST_YEAR_MIN_VALUE = 1;
- static const int HIST_YEAR_MAX_VALUE = 9999;
Sample error messages, reported to diagnostics. See screenshots below for the first three errors:
- Year Mapping Group "Year Mapping Group One": Year mapping groups cannot contain Output DMIs
- Year Mapping Group "Year Mapping Group One": A map item has an undefined year in database
- Year Mapping Group "Year Mapping Group One": 3 map items have undefined years in database
- Year Mapping Group "Year Mapping Group One": A map item has an invalid year in database
- Year Mapping Group "Year Mapping Group One": 3 map items have invalid years in database



---