d:" + $instanceID | convertto-xml | Update-DiagReport -id RootCauseNotFixed -name "Root Cause Not Fixed" -description "Reporting that the Root Cause was not fixed. (repair skipped)" -verbosity Debug
            #validation failed, add the root cause, troubleshooting will rerun
            Update-DiagRootCause -InstanceId $instanceID -ID $RootCauseID -Detected $true
        }
    }
    else
    {
        #if RC was previously marked as "detected", make sure we don't reset it to "not fixed"
        if($Global:RCInDetectedState -and $Global:RCInDetectedState[$instanceID])
        {
            "ID:" + $RootCauseID + " InstanceId:" + $instanceID | convertto-xml | Update-DiagReport -id RootCauseDetected -name "Root Cause Detected" -description "Reporting that the Root Cause was detected. (Root Cause was previously marked as detected)" -verbosity Debug
        }
        else
        {
            #a repair was skipped, but not for this root cause, so we need to report it as not fixed to be sure it's addressed
            "ID:" + $RootCauseID + " InstanceId:" + $instanceID | convertto-xml | Update-DiagReport -id RootCauseNotFixed -name "Root Cause Not Fixed" -description "Reporting that the Root Cause was not fixed. (another repair was skipped or was info only/help topic)" -verbosity Debug
            #validation failed, add the root cause, troubleshooting will rerun
            Update-DiagRootCause -InstanceId $instanceID -ID $RootCauseID -Detected $true
        }
    }
}
elseif($sessionStatus -eq $NDF_STOP_STATUS_FAILEDREPAIR)
{
    "ID:" + $RootCauseID + " InstanceId:" + $instanceID | convertto-xml | Update-DiagReport -id RootCauseNotFixed -name "Root Cause Not Fixed" -description "Reporting that the Root Cause was not fixed because last repair was a failure." -verbosity Debug
    #An error occurred, report all as detected to continue resolving
    Update-DiagRootCause -InstanceId $instanceID -ID $RootCauseID -Detected $true
}
