Preflight Data Safety Csv
preflight_data_safety_csvValidate a Data Safety CSV export before submitting it, catching structural errors and flagging conditional warnings to prevent Play rejection.
Instructions
Check a Data Safety CSV export before declaring it.
Play has no API to read the current Data Safety declaration, and set_data_safety replaces it wholesale, so this is the only point at which the file can be inspected. Play's own rejection arrives after the upload and does not name the row.
Structural faults are errors: wrong headers, a row that is not five fields, a Response value that is not exactly TRUE/FALSE/blank (a lowercase "true" is the signature of a spreadsheet re-save), a repeated response, or a single-choice question with two answers.
Everything conditional is a warning. Google adds and renames question IDs without publishing them, and most of a real export is conditional on answers elsewhere in it, so an unrecognised ID or an unanswered group means "look at this", never "stop".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | Yes | Path to a CSV exported from Play Console > App content > Data safety > Export to CSV |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||