Add diagnostics and fix scripts for resource
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.
Before you begin
Role required: adt_admin
About this task
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.
Procedure
-
Navigate to All > Application Diagnostics Tool > Scripts.
-
Select New.
-
On the Diagnostics Scripts form, fill the fields.
For a description of the field names, see Diagnostics Scripts form.
-
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.
-
Use Fix script Access Roles to move required roles to the Selected list.
The users with the selected roles can access the diagnostic script.
-
In the Fix script section, add the actual code for the fix script.
-
Select Submit.
Parent Topic:Use Resource Diagnostics to detect corrupt resource data
---
title: Add diagnostics and fix scripts for resource
description: 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.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/it-business-management/resource-management/add-diagnostic-and-fix-script-rm.html
release: brazil
product: Resource Management
classification: resource-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Use Resource Diagnostics to detect corrupt resource data, Resource Management classic, Project Portfolio Management, Strategic Portfolio Management]
---
# Add diagnostics and fix scripts for resource
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.
## Before you begin
Role required: adt\_admin
## About this task
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.
## Procedure
1. Navigate to **All** > **Application Diagnostics Tool** > **Scripts**.
2. Select **New**.
3. On the Diagnostics Scripts form, fill the fields.
For a description of the field names, see [Diagnostics Scripts form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-business-management/resource-management/diag-scripts-form.md).
4. 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**.
**Parent Topic:**[Use Resource Diagnostics to detect corrupt resource data](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-business-management/resource-management/use-resource-diagnostics.md)
| title | Add diagnostics and fix scripts for resource |
| description | 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. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/it-business-management/resource-management/add-diagnostic-and-fix-script-rm.html |
| release | brazil |
| product | Resource Management |
| classification | resource-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Use Resource Diagnostics to detect corrupt resource dataResource Management classicProject Portfolio ManagementStrategic Portfolio Management |