Data Collection Proxy Records with Null or Missing Fields
A missing field, an explicit null and an empty string can look similar in a report while carrying different source meanings. Converting all three into zero creates a fourth meaning that may never have existed. When collecting approved records with Go2Proxy data collection, preserve the source state before normalization. The first decision is what each form means under the endpoint or page contract, not which replacement makes a spreadsheet look tidier.

Write a field-state contract
For each important field, define accepted populated values and the permitted meanings of absent, null and empty forms. A blank promotional price may be expected when no promotion applies, while a missing product identifier can make the record unusable.
Avoid one global default across all fields. The correct acceptance rule depends on the business question and source contract. Keep unresolved meanings marked unresolved until they can be reviewed or established through a controlled fixture.
Preserve the state before transformation
Capture the member's presence separately from its decoded value when the distinction matters. Some convenience mappings or export tools fill absent values automatically, making the original state impossible to reconstruct later.
The scraped-data validation guide connects required-field checks to page identity and content acceptance. Use those earlier checks before concluding that the source intentionally omitted a value. A consent screen or wrong template can also produce a record full of missing fields.
Separate collection failure from business absence
An unavailable request does not establish that a source field has become empty. Keep network, parsing and accepted field-state outcomes distinct in both alerts and stored records.
When a previously populated value disappears, verify the same page identity, visitor condition and field location. A selector failure should not become a price removal or stock change. Preserve the last accepted value as historical data rather than silently copying it into the new observation.
Build a four-case fixture
Use an owned response containing a populated value, an explicit null, an empty string and an absent member in otherwise comparable records. Verify the normalized state and exported representation for all four.
Then introduce an unrelated response template that lacks every business field. The collector should classify that as a page or contract failure rather than treating all products as valid records with missing optional data. This protects the meaning of downstream counts.
Make reports display uncertainty honestly
Choose display labels that distinguish not applicable, not supplied and failed to observe when those states affect the decision. Keep the underlying values and state codes separate from user-friendly wording.
Recheck the export and re-import path. A dashboard may retain the distinction while a CSV handoff erases it. Acceptance should cover the representation the customer actually receives, including whether totals exclude unknown values or incorrectly count them as zero.
Frequently asked questions
Should null always become zero?
No. Zero is a real value. Use it only when the source contract establishes that meaning, not as a cosmetic replacement for uncertainty.
Is an absent optional field always an error?
No. It may be valid under the record contract. Its presence requirements and meaning need a field-specific rule.
Can a failed request prove a field disappeared?
No. It proves the observation failed at a particular boundary. Confirm business absence through an accepted response under the relevant conditions.
Before the next run
Keep populated, null, empty and absent cases in the delivered-format checks so later normalization changes cannot silently merge their meanings.



