{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":27767,"path":"it-business-management/resource-management/add-diagnostic-and-fix-script-rm.md","title":"Add diagnostics and fix scripts for resource","bundle":null,"doc_type":null,"release":"australia","body":"\n# Add diagnostics and fix scripts for resource\n\nAdd 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.\n\n## Before you begin\n\nRole required: adt\\_admin\n\n## About this task\n\nYou 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.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Application Diagnostics Tool** &gt; **Scripts**.\n\n2.  Select **New**.\n\n3.  On the Diagnostics Scripts form, fill the fields.\n\n    For a description of the field names, see [Diagnostics Scripts form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-business-management/resource-management/diag-scripts-form.md).\n\n4.  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.\n\n5.  Use **Fix script Access Roles** to move required roles to the Selected list.\n\n    The users with the selected roles can access the diagnostic script.\n\n6.  In the **Fix script** section, add the actual code for the fix script.\n\n7.  Select **Submit**.\n\n\n**Parent Topic:**[Use Resource Diagnostics to detect corrupt resource data](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-business-management/resource-management/use-resource-diagnostics.md)\n\n"}}