Validate
Callvalidate_formula with one or more expression-and-condition pairs.
Validation checks:
- Expression syntax
- Condition syntax
- Property references
- Function names and arguments
- Semantic compatibility
write_formulas.
Read after writing
Inspect thewrite_formulas ledger:
- Attempted count
- Applied count
- Rejected count
- Per-item expression or condition errors
Verify calculated behavior
Useget_table_block_data on a relevant saved table after a material change. Check representative dates and segments.
Examples:
- Compare Gross Profit with Revenue minus Cost of Goods Sold
- Check a Department formula for two different departments
- Check both sides of Last close for a Formula-period change
- Compare the intended scenario with the scenario that was written