AGS4 file validation: what the rules actually check
Updated: 2026-08-04 · ISKRIT
An AGS4 file is rejected for structural reasons far more often than for wrong geotechnical values. Most of those reasons are mechanical and can be found without any reference dictionary, straight from the text of the file.
What is checkable from the file alone
| Rules | Checks |
|---|---|
| 1 to 5 | line syntax: every field quoted, comma separated, doubled quotes inside a field, nothing outside the quotes |
| 2b and 7 | group descriptor order: GROUP, then HEADING, then UNIT and TYPE, then DATA, and every DATA row matching the heading count |
| 8 | data types: 2DP means exactly two decimal places, YN accepts only Y or N, DT must parse as a date |
| 10 | key links: every SAMP row pointing at a LOCA that exists |
| 13 and 14 | PROJ and TRAN present, one DATA row each |
| 15 and 17 | units and types used in the file declared in the UNIT and TYPE groups |
| 16 | PA abbreviations present in the ABBR group |
| 19 | group and heading names in the permitted character set and length |
What is not checkable that way
Rule 9 requires every heading to exist in the standard AGS dictionary for its group. Enforcing it needs the dictionary itself embedded in the checker, along with the dictionary version the file targets. A validator without that dictionary should state plainly that rule 9 was not applied rather than pass the file silently. Ours does exactly that.
The type rules bite hardest
Rule 8 is where clean-looking files fail. A TYPE of 2DP is not “a number
rounded to two decimals”, it is a requirement that the text in the field carry
exactly two decimal places. The value 12.5 under a 2DP heading is
a rule 8 error even though the number is right, and so is 12.500.
Spreadsheet exports produce this constantly, because a spreadsheet drops
trailing zeros and the exporter writes whatever the cell holds.
Questions
Does a rule 8 failure block loading? Most receiving systems load the file and flag the row, but a client checking to the letter of the format can reject the delivery.
Are warnings and errors distinguished? Yes. Missing mandatory groups are errors, an undeclared unit is reported separately from a broken line, and the report keeps line numbers so the file can be fixed directly.
Upload a file and get the rule-by-rule report from the AGS4 validation tool.
ASTM D4253 and D4254: maximum and minimum index density
Relative density Dr and density index Id are not the same number
USCS classification step by step: ASTM D2487
Cu and Cc: what the two gradation coefficients actually tell you
Dual symbols in USCS: the 5 to 12 percent fines band
EN ISO 14688-1 against USCS: two different size ladders
AGS4 syntax: the five rules that break a delivery
ASTM D2435 oedometer test: from the curve to Cc, mv and Eoed
Converting oedometer modulus to Young’s modulus
EN ISO 17892-5 and ASTM D2435: where the two diverge
ASTM D1196 plate load test: modulus and subgrade reaction
DIN 18134: Ev1, Ev2 and the compaction ratio
Ménard pressuremeter modulus: ASTM D4719 and EN ISO 22476-4
Shewhart control chart constants: A2, A3, B3, B4, D3, D4, d2, c4
The eight out of control tests on a Shewhart chart
Repeatability and reproducibility limits: where 2.77 comes from
How rebar cutting plans are optimised: the cutting stock problem
Cutting waste in rebar fabrication: what percentage is normal
Earthwork volume from survey points: grid, TIN and cross sections