Breakdown Validation
Breakdown validation will occur as long as breakdown is mandatory or any presented grid is not empty even if breakdown is optional. Validation will fail if any of the following condition occurs:
- Breakdown is mandatory but any presented grid has less than 2 records.
- Any grid contains only 1 breakdown record.
- Any breakdown with distance or time less than or equal to 0.
- Any breakdown does not have country information.
- Any breakdown having country in North America without State information.
- Any breakdown having country outside of North America and have State information.
- The first breakdown does not have the same Country or State/Country combination as the ‘from’ location.
- The last breakdown does not have the same Country or State/Country combination as the ‘to’ location.
- Consecutive breakdowns having same state/country combinations. For example,
- PA/USA -> PA/USA -> NJ/USA -> DE/USA -> Invalid
- PA/USA -> NJ/USA -> PA/USA -> DE/USA -> Valid
- DEU -> DEU -> POL -> Invalid
- DEU -> FRA -> DEU -> POL -> Valid
See Also