---
sourceDocument: Australia Telecom Service Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/telecom-service-ops

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Telecom Service Operations Management

ft:clusterId :

    - tsom

bundleId :

    - tsom

workflow :

    - Customer and Industry


---

# MPN Formula Engine processing

# MPN Formula Engine processing {#ariaid-title1}

Release version: Australia  
Updated November 5, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
The Formula Engine processes raw KPI formulas and stores the result in the Formatted KPI Formula field when a record is inserted or updated in the MPN Formulas \[sn_tsom_em_conns_kpi_definitions\] table.

When a record is inserted or updated in the MPN Formulas table, a business rule named Transform KPI Formula to Script fires automatically. It invokes the `NokiaMpnFormulaEngineSEP` extension point to process the
raw formula before it is stored in the Formatted KPI Formula field.

The processing runs in two steps:

1. Cleanup: The raw value in KPI Formula is normalized into a JavaScript-evaluable expression:
   * Whitespace and line breaks are collapsed to a single space.
   * `Sum()` wrappers are removed; `Max()` and `Min()` are converted to `Math.max()` and `Math.min()`.
   * `**` exponentiation notation is converted to `Math.pow()` for compatibility with the MID Server JavaScript engine.
2. Validation --- The processed formula is checked for balanced parentheses. If the parentheses are unbalanced, the raw value is still stored but a warning is logged. Records with unbalanced parentheses are skipped during metric collection at runtime.

The resulting value is written to the Formatted KPI Formula field and is the expression that the metric calculation engine references at runtime.  
Note:  
If no `NokiaMpnFormulaEngineSEP` implementation is registered, the raw value in the KPI Formula value is stored unchanged and a warning is logged.
**Related reference**   

* [MPN Formulas table](https://www.servicenow.com/docs/J1CYl~b2NnZcftqtauXVKA "Reference for the MPN Formulas [sn_tsom_em_conns_kpi_definitions] table and the automatic processing that occurs when a record is inserted or updated.")

