---
sourceDocument: Australia Strategic Portfolio Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/it-business-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Strategic Portfolio Management

ft:clusterId :

    - itbm

bundleId :

    - itbm

workflow :

    - Technology


---

# Add diagnostic and fix scripts

# Add diagnostic and fix scripts {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Add diagnostic scripts to scan the data in your application for any corruption. You
can also attach fix scripts to rectify the corrupt or invalid data identified by the
diagnostic script.

## Before you begin

Role required: adt_admin

## About this task

The results of the filter conditions that you specify in a [diagnostic feature](https://servicenow-prod.fluidtopics.net/ta7g~Qij3L2GkcQWn7uqcw "Create and add diagnostic features, which consist of single or multiple diagnostic scans that execute mapped scripts to detect data corruption or invalid data.") are used as an
input for the diagnostic script while executing. You can also use the result of one
script in subsequent scripts.

## Procedure

1. Navigate to AllApplication Diagnostics ToolScripts.
2. Select New.
3. On the form, fill in the fields.  
   For more information, see [Diagnostic Scripts form](https://servicenow-prod.fluidtopics.net/zoXDQ5nlXUh1sDC8BB_Tyw "Learn about the fields of diagnostic scripts form.").
4. **Optional:** Include a script for fixing the corrupt or invalid data identified by the diagnostic script.
   1. Select the Has Fix script check box.
   2. Select the Edit User Roles icon (![Edit User Roles icon]()) and choose the roles that can access the diagnostic script.
   3. In the Fix script section, add the code for the fix script.
   {#add-diagnostic-and-fix-script__substeps_ykk_llc_mkb}
5. Select Submit.
{#add-diagnostic-and-fix-script__steps_tbd_zym_xjb}
**Related concepts**   

* [Project Diagnostics](https://servicenow-prod.fluidtopics.net/s5qdUb~C55dRIuZBiMObPw "Project Diagnostics enables you to detect corrupt data in a project such as task validity, dependencies, and relationships using diagnostic scans that execute diagnostic scripts. You can also fix corrupt data using fix scripts.")

*[\>]: and then


