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

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Strategic Portfolio Management

ft:clusterId :

    - itbm

bundleId :

    - itbm

workflow :

    - Technology


---

# Create Diagnostic scans and map related scripts

# Create Diagnostic scans and map related scripts {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Once you have created diagnostic features and scripts, map them to a diagnostic scan
to check the health of data in your application. Use fix scripts to rectify any corrupt or
invalid data that the diagnostic scan identifies.

## Before you begin

In order to create a diagnostic scan, you must have already created diagnostic
features and scripts For more information, see [Create and add diagnostic features](https://servicenow-prod.fluidtopics.net/8ni53d21BnILrXzAkUqi0A "Create and add diagnostic features, which consist of single or multiple diagnostic scans that execute mapped scripts to detect data corruption or invalid data.") and [Add diagnostic and fix scripts](https://servicenow-prod.fluidtopics.net/2tiaZ6KX2HYvwCROapr_2w "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.").

Role required: adt_admin

## About this task

You can map multiple scripts with each diagnostic scan and define the order of their
execution.

## Procedure

1. Navigate to AllApplication Diagnostics ToolDiagnostics.
2. Click New.
3. On the form, fill in the fields.  
   {#create-diagnostic-scan-map-script__table_ymh_4kr_wjb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name of the diagnostic scan. This name appears in the application to which this diagnostic scan belongs. |
   | Active | Option for activating the diagnostic scan. |
   | Order | Order in which this diagnostic scan appears in the application. |
   | Feature | Diagnostic feature with which you want to associate this diagnostic scan. |
   | Roles | Option for adding or removing user roles that can access the diagnostic scan. |
   | Description | Details of the diagnostic scan. The description is displayed in the application to which the diagnostic scan belongs. |
   [Table 1. Diagnostics form]

   {#create-diagnostic-scan-map-script__table_ymh_4kr_wjb}
4. Click the Roles icon (![Edit user roles icon]()) and move the desired roles to the Selected list.  
   The users with the selected roles can access the diagnostic script.
5. Search for and select diagnostic scripts to map with the diagnostic scan in the Diagnostics and Script Mappings section.
6. Click Submit.
{#create-diagnostic-scan-map-script__steps_tbd_zym_xjb}

## What to do next

* Create related link for navigating to the diagnostic features and scans in the application. For more information, see [Create a UI
  action](https://www.servicenow.com/docs/access?context=t_EditingAUIAction&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US).
* Run diagnostic scan and view results. For an example of how the diagnostics scan work, see [Use Project Diagnostics to detect corrupt project data](https://servicenow-prod.fluidtopics.net/VYqS3PoaxwVVTyOi1FDobg "Project Diagnostics uses the Application Diagnostics Tool to detect corrupt data in a project, such as tasks with invalid parents, tasks without top tasks, and invalid or cyclic relations in a project.").
{#create-diagnostic-scan-map-script__ul_qmj_bqn_xjb}

*[\>]: and then


