Originally created by: grynn-in
PR [#108] (konsolidat#105) filters out ~55,979 entity-less GL rows (empty SubledgerVoucherDataAreaId, ~11% of 511,789) at the canonical dbt_project/models/staging/canonical/stg_gl_entries.sql. This is correct on today's data (verified: header-matched, net-zero amounts, entity unrecoverable) — but the drop is silent. A future extract regression that inflates the entity-less ratio would be swallowed with no signal.
severity: warn test, or a small quarantine_gl_entries audit model capturing the dropped rows + a count, so the volume is observable.stg_d365_fo__gl_entries.sql) where the D365-specific empty-SubledgerVoucherDataAreaId quirk originates and where the quarantine/log naturally belongs.The count of dropped entity-less GL rows is visible (warn/audit) so a regression can't hide.
Surfaced in the PR [#108] review.
Ticket changed by: grynn-in