---
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 diagnostics and fix scripts for resource

# Add diagnostics and fix scripts for resource {#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 existing or new 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

You can create multiple diagnostic scripts to check various aspects of data. The
results of the filter conditions, that you specify in a diagnostic feature, is 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 Diagnostics Scripts form, fill the fields.  
   For a description of the field names, see [Diagnostics Scripts form](https://servicenow-prod.fluidtopics.net/Z391z_9YIo5oCclwmY5v4A "Use the Diagnostic Scripts form to scan the data in your application for any corruption.").
4. **Opcional:** If you want to include a script for fixing the corrupt or invalid data identified by the diagnostic script, select the Has Fix script check box.
5. Use Fix script Access Roles to move required roles to the Selected list.  
   The users with the selected roles can access the diagnostic script.
6. In the Fix script section, add the actual code for the fix script.
7. Select Submit.
{#add-diagnostic-and-fix-script-rm__steps_tbd_zym_xjb}

