Årsregnskap Altinn 3 — Valideringsfeil
Symptom
A user’s annual accounts submission to Altinn 3 is rejected with a validation error from Brønnøysundregistrene.
Fix and Recovery
No data is lost — the Altinn 3 instance remains open.
-
Read the validation error to identify the failing XML element.
-
Find the corresponding mapper in
finsta-arsreg-altinn3-mapping/…/mapper/underskjema/by searching for the JAXB class name. -
Fix the mapping (see Common Fixes).
-
Deploy the fix.
-
The user retries the submission.
Common Fixes
- Missing required field
-
Change
findCurrentLineAmount(omits when 0/null) tofindRequiredCurrentLineAmount(always emits). The JAXB model may not mark a field as required even when the API rejects its absence (#1209). - Wrong value
-
Check for incorrect
AnnualStatementLineKey, wrong type conversion, or copy-paste errors in note lookups.