---
sourceDocument: Brazil Enterprise Architecture
sourceDocumentLink: https://www.servicenow.com/docs/r/application-portfolio-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Enterprise Architecture

ft:clusterId :

    - appportman

bundleId :

    - appportman

workflow :

    - Technology


---

# Technical debt calculation

# Technical debt calculation {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Technical debt records identify products used in business applications that aren't approved in the TRM or that use unapproved versions. View technical debt records to understand conformance gaps and plan remediation.

## Prerequisites {#eaw-trm-technical-debt-calc__section_vhr_2hh_jkc}

To view technical debt records, you need the Technology Lifecycle Management (sn_apm_tpm) Store application and the SAM Foundation (com.snc.sams) plugin.{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-prereq-1}

## Configurable conditions {#eaw-trm-technical-debt-calc__section_whr_2hh_jkc}

You can select which conditions the scheduled job uses to create technical debt records. At least one condition must remain selected. For configuration steps, see [Configure technical debt settings](https://www.servicenow.com/docs/UR0EzwLITH56iBnGbzsixA "Configure whether the server is part of a technical debt record's identity and select which reasons the scheduled job uses to create technical debt.").{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-config-1}

## Technical debt levels {#eaw-trm-technical-debt-calc__section_xhr_2hh_jkc}

The system creates technical debt records at two levels when specific conditions are met. Level 2 checks occur only when the
sn_apm_trm.is_product_life_cycle_tech_debt_enabled property is set to <kbd class="ph userinput">true</kbd>.{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-levels-1}

**Level 1 conditions**{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-levels-2}

The system creates a Level 1 technical debt record when either of the following conditions is true:{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-levels-3}

* A product is associated with a business application but is not part of the TRM product list.
* A product is associated with a business application and is part of the TRM product list, but the Production phase is not approved.

{#eaw-trm-technical-debt-calc__ul_level1}

**Level 2 conditions**{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-levels-4}

The system creates a Level 2 technical debt record when either of the following conditions is true:{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-levels-5}

* A product is associated with a business application, is part of the TRM product list, has an approved Production phase, but has no associated TRM product lifecycles.
* A product meets the criteria in the following cases.

{#eaw-trm-technical-debt-calc__ul_level2}

**Case 1: Full version is not empty**{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-case1}

When the full version field in the Software Discovery Model \[cmdb_sam_sw_discovery_model\] table is not empty, the system creates a technical debt record. This occurs if no TRM product lifecycle meets all of the following criteria:{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-case1-desc}

* The TRM phase is approved for production.
* The TRM product phase is approved for production.
* The version matches the full version or wildcard pattern in the Software Discovery Model \[cmdb_sam_sw_discovery_model\] table.
* The current date falls between the phase start date and phase end date.

{#eaw-trm-technical-debt-calc__ul_case1}

**Case 2: Full version is empty**{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-case2}

When the full version field in the Software Discovery Model \[cmdb_sam_sw_discovery_model\] table is empty, the system creates a technical debt record. This occurs if no TRM product lifecycle meets all of the following criteria:{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-case2-desc}

* The TRM phase is approved for production.
* The TRM product phase is approved for production.
* The version matches (exact or wildcard) the version in the Software Discovery Model \[cmdb_sam_sw_discovery_model\] table.
* The edition matches the edition in the Software Discovery Model \[cmdb_sam_sw_discovery_model\] table.
* The current date falls between the phase start date and phase end date.
{#eaw-trm-technical-debt-calc__ul_case2}

## Edition-specific technical debt {#eaw-trm-technical-debt-calc__section_yhr_2hh_jkc}

A Level 2 technical debt record can be created from a TRM product lifecycle that is defined by both version and edition. The technical debt record captures the edition along with the version. The edition is part of the record identity.
A debt for version X, edition A is a separate record from a debt for version X, edition B.{#eaw-trm-technical-debt-calc__eaw-trm-technical-debt-calc-edition-1}
**Related concepts**   

* [Technical debt settings](https://www.servicenow.com/docs/o8pDx2B5coF0boARkCHDlQ "Control which server and reason criteria the scheduled job uses to create TRM technical debt records.")  
**Related reference**   

* [TRM technical debt states and transitions](https://www.servicenow.com/docs/gagEVaUCPyGscjporpJodA "A TRM technical debt record persists across scheduled job runs and moves between Active, Resolved, and Archived states instead of being deleted and re-created.")
* [Governing TRM product fields](https://www.servicenow.com/docs/DovxXznF8PIEFlcIxlLnBw "The TLM Technology Lifecycle [sn_apm_tpm_technology_lifecycle] table includes fields that link a discovered technology to the TRM product and product lifecycle that govern its obsolescence status.")

