Add diagnostic and fix scripts

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • 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.

    Before you begin

    Role required: adt_admin

    About this task

    The results of the filter conditions that you specify in a diagnostic feature are 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 form, fill in the fields.
      For more information, see Diagnostic Scripts form.
    4. Optional: 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.
    5. Select Submit.