Are Data Fix changes safe? Can I undo applied fixes?
The Data Fix engine includes multiple safety mechanisms to protect your data, but you should understand what happens before and after applying fixes.
Safety guarantees
- Safe batch application — Every apply operation modifies all readings together as one unit. If any single correction fails, the entire operation rolls back and zero readings are changed.
- Original value preservation — Every modified reading stores its original value in an audit record. The autofix_actions table logs the original_value, corrected_value, correction method, and timestamp for each change.
- Per-action audit trail — Each individual fix is recorded as a separate action with its type (gap_interpolation, negative_correction, outlier_correction, duplicate_removal, plateau_redistribution), making it possible to trace exactly what changed and why.
- Interpolation metadata — Readings created by gap filling are marked as is_interpolated=true with the interpolation_method recorded, so you can distinguish estimated values from actual meter readings.
- Max 90-day range — Server-side enforcement prevents runaway operations on large datasets.
- No silent errors — If any step fails, the entire apply aborts immediately. The engine stops on first failure instead of logging errors and continuing.
Can you undo fixes?
Currently there is no one-click "undo" button. However:
- The audit trail preserves original values for every changed reading
- An administrator can use the action records to manually restore original values if needed
- Re-importing raw data from your original source (CSV, API) will overwrite corrected values
Best practices
- Always use Preview before Apply — review the issue count and quality scores
- Start with shorter time periods (1 week) to verify results before fixing larger ranges
- Check that the selected period has not been invoiced (a billing warning appears if it has)
- Export or screenshot your current data before applying fixes to large datasets
Where to see the audit log: After applying, the success message confirms the number of fixes applied. Historical runs are tracked in the autofix history.