Skip to content

Deviation Investigation

Effective deviation management requires thorough investigation to identify root causes and prevent recurrence. This page covers how to generate AI root cause analysis and review the deviation timeline.

An approved deviation is closed from its detail page. Closing locks the record, so the system requires the investigation to be written up first. The deviation page lists what is still missing under Before this deviation can be closed, and Close deviation is unavailable, with the same reason, until nothing is missing:

  • Resolution summary: what was done about the deviation.
  • Root cause: what caused it.
  • For high and critical severity only: a linked CAPA, or a written No-CAPA justification saying why none is needed. A discarded CAPA does not count.

Enter the details in the fields on the page and select Save closure details. Each save is recorded in the deviation’s history with the old and new text, and the justification stays visible on the closed record. If a close is attempted with items missing, it is refused and names each one; the deviation stays Approved. The same rule applies when a validation deviation is closed from the Validation Package page; that page cannot record the details, so the refusal points you to the deviation’s own page. Records closed before this rule still open and read as before.

Before generating, choose one of two methodologies:

Method Best For
5 Whys Linear cause-and-effect chains where successive “why” questions reveal the root cause.
Fishbone Diagram Complex deviations where multiple categories of factors may contribute to the problem.
  1. On the left sidebar, select Deviations.
  2. Select View on a deviation row to open the deviation detail page.
  3. Locate the Root Cause Analysis panel.
  4. From the analysis type dropdown, select 5 Whys or Fishbone Diagram.
  5. Select Generate Analysis.
  6. The AI processes the deviation data and produces a structured analysis.

The 5 Whys analysis presents:

  • Sequential “Why” questions – each level drills deeper into the cause chain, displayed as Why 1 through Why 5 (or fewer if the root cause is reached earlier).
  • Root Cause – the fundamental cause identified at the end of the chain, highlighted in a summary box.
  • Recommendations – actionable suggestions for addressing the root cause, listed as bullet points.

The Fishbone analysis organizes contributing factors into categories:

  • Categories – factors grouped by type (for example, People, Process, Equipment, Materials, Environment, Management), each in its own section.
  • Contributing Factors – individual factors within each category listed as bullet points.
  • Root Cause – the primary root cause identified across all categories.
  • Recommendations – suggested corrective and preventive actions.

If new information becomes available or the initial analysis needs refinement:

  1. Scroll to the bottom of the existing analysis.
  2. Select Regenerate Analysis.
  3. The AI produces an updated analysis incorporating the latest deviation data.

The History section provides a chronological audit trail of all events related to a deviation.

  1. On the deviation detail page, select the History tab.
  2. Review events displayed in chronological order.

Each event includes:

Element Description
Event Icon Visual indicator of the event type (create, update, approve, reject).
Event Title Describes what happened (for example, “Deviation Created”, “Status Changed to approved”).
Timestamp Exact date and time of the event.
User Email of the user who performed the action.
Description Additional context such as the previous status or added resolution.

The Linked records section shows the linked CAPA’s ID and status, or the Create CAPA action when no CAPA is linked yet. CAPA-related events – creation, status changes, and action updates – are recorded on the CAPA record itself.

Practical example: AI root cause analysis for a sterility test failure

Section titled “Practical example: AI root cause analysis for a sterility test failure”

Scenario: A sterility test failure was reported for injectable Batch INJ-2026-0089. The deviation has been placed Under Review and you need to identify the root cause.

  1. On the left sidebar, select Deviations and open the deviation for Batch INJ-2026-0089.
  2. In the Root Cause Analysis panel, select Fishbone Diagram from the analysis type dropdown.
  3. Select Generate Analysis.

The AI generates a structured Fishbone analysis. In this example, the output might include:

  • People: Operator was newly qualified on aseptic technique; gowning procedure deviation noted in training records.
  • Process: Media fill qualification for the filling line was last performed 11 months ago (approaching the 12-month requalification deadline).
  • Equipment: HEPA filter integrity test for isolator ISO-03 showed borderline results (0.009% vs. 0.01% limit) during last PM.
  • Materials: New stopper lot (Lot #S-7782) introduced without completing extractables testing.
  • Environment: Particle counts in Grade A zone were at the upper alert limit (2 of 3 readings) during the filling campaign.
  • Root Cause: Combination of borderline environmental controls and introduction of a new stopper lot without complete qualification.
  • Recommendations: Perform unscheduled HEPA filter integrity test on ISO-03; complete extractables testing on stopper Lot #S-7782 before further use; schedule media fill requalification.
  1. Select the History tab on the deviation detail page.
  2. Verify the chronological sequence: deviation created, status changed to Under Review, root cause analysis generated.