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

 Release :

    - australia

ft:locale :

    - pt-BR

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}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

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.

## Antes de Iniciar

Role required: adt_admin

## Por Que e Quando Desempenhar Esta Tarefa

The results of the filter conditions that you specify in a [diagnostic feature](https://servicenow-prod.fluidtopics.net/UCxfRygDgEot0uQZNWvI0g "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.

## Procedimento

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/gMbR9ueP11mSqV58lT2Jng "Learn about the fields of diagnostic scripts form.").
4. **Opcional:** 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}
**Conceitos relacionados**   

* [Project Diagnostics](https://servicenow-prod.fluidtopics.net/qlky7He7cNhPXHPcwzeVJg "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.")

