Pharma quality systems · Reviewed 23 November 2026
CAPA workflow in pharma: taking a deviation or OOS result all the way to an effective fix
A CAPA workflow in pharma is the controlled path from a quality event to a proven fix. A deviation, an out-of-specification (OOS) result or a complaint is logged, classified by risk and contained. Then it is investigated to a root cause, answered with corrective and preventive actions, and closed only after a dated check shows the problem has not returned. Deviation and OOS handling feed CAPA; CAPA is where the fix is owned and measured.
We reply within 1 business hour · No obligation
In many Indian formulation and API plants, the CAPA log is what slows an audit: investigations open past their target, root causes that read "operator error", and no proof that last year's fix worked.
Below, the flow follows an event in order, with the lab's two-phase OOS route on its own. We are a Zoho Advanced Partner, not a GMP consultancy: treat this as a working map, while your SOPs and QA head decide what applies.
The short version: deviations and OOS results tell you something went wrong; CAPA is the promise that it will not happen again, plus the evidence that you kept that promise.
What is a CAPA workflow, and why do deviations and OOS results feed it?
CAPA stands for corrective and preventive action. A corrective action removes the cause of a problem that has already happened. A preventive action removes the cause of one that could happen, often spotted through trends or near misses.
A CAPA is rarely raised on its own. Most start as one of these inputs:
- Deviations. Any departure from an approved instruction, specification or procedure during manufacturing, packing, storage or testing.
- OOS results. A test result outside the registered or approved specification, found during release, in-process or stability testing.
- Market complaints and returns. Reports from customers, distributors or doctors about a product already sold.
- Audits and trend reviews. Inspection findings, the annual product quality review and repeat minor deviations.
Revised Schedule M expects a quality system in which these inputs are investigated and acted on. Our plain guide to Revised Schedule M and its record keeping explains the wider rule; this article stays with the CAPA flow itself.
Three doors into CAPA
How is a deviation different from an OOS result or a complaint?
They differ in who finds them, who investigates first and how fast the first decision must come. All three can end in a CAPA, but none of them should open one automatically.
| Point | DeviationRaised on the floor or in the warehouse | OOS resultRaised in the QC labOwn SOP | Market complaintRaised by a customer |
|---|---|---|---|
| First question | Is the batch affected, and is it still safe to continue? | Is it a lab error or a real product result? | Is it a genuine quality defect, and is patient safety at risk? |
| Who investigates | Production with QA | QC first, then QA and production if no lab cause is found | QA, pulling retained samples and batch records |
| Sample SOP target to close | 30 working days | Phase I within days, full report in 30 | Reply to customer once the investigation ends |
| Can end in | CAPA, change control, or a documented "no CAPA" decision | Valid lab error, or a confirmed OOS with batch decision and CAPA | CAPA, recall review or trend entry |
Target days are a Sample. Each site sets its own in its SOPs, usually split by class (minor, major, critical).
The flow, stage by stage
What are the stages of a CAPA workflow in a pharma plant?
Seven stages, from first report to closure. Each tab below shows who is responsible at that stage, the evidence left behind and the usual weak spot.
Report the event the same shift
Whoever notices the problem raises it before the shift ends, with batch number, equipment, time and what was seen. Late reporting is itself an audit finding, so keep the form quick.
- EvidenceEvent ID, reporter, date and time
- Breaks whenEvents wait for a supervisor's signature to exist
Classify by risk, not by habit
QA rates the event minor, major or critical using the criteria in the SOP: impact on product quality, patient safety, data integrity and the registered process. Planned deviations, approved before the change happens, follow a separate lighter route.
- EvidenceClass with the reason written down
- Breaks whenEverything is called minor to keep the clock short
Contain and assess impact
Hold the affected batch, stop the line if needed, and list every other batch or line that could share the cause. This correction protects product now; it is not yet the CAPA.
- EvidenceBatches on hold and the impact list
- Breaks whenOnly the batch in hand is checked
Investigate to a root cause
A cross-functional team applies a named method such as 5 Whys, a fishbone (Ishikawa) diagram or fault tree analysis, backed by batch records, equipment logs and trends. If no single cause is proven, the report says so and ranks the probable ones.
- EvidenceInvestigation report with data attached
- Breaks whenThe cause is "human error" with nothing behind it
Plan corrective and preventive actions
Each action names one owner, a due date and the cause it answers. Corrective actions fix this cause on this line; preventive actions close the same gap elsewhere. Actions that change a process, document or system go through change control.
- EvidenceCAPA plan approved by QA
- Breaks whenOne action is owned by "production"
Implement and prove it was done
Owners attach proof such as the revised SOP number, training record or requalification report. QA verifies each item, and extensions need a reason and fresh approval.
- EvidenceCompletion proof per action
- Breaks whenDue dates are moved without a note
Check effectiveness, then close
Some weeks or batches later, QA tests whether the fix worked against a measure set at planning time, such as no repeat of the event in the next ten batches. A failed check reopens the investigation instead of quietly closing the record.
- EvidenceEffectiveness result against its criterion
- Breaks whenClosure happens the day actions finish
The lab's own route
How does an OOS investigation work before it reaches CAPA?
In two phases. Phase I checks the lab: analysis, instrument, standards and calculations. Only if no clear lab cause turns up does Phase II widen the hunt to manufacturing. Retesting until a passing result appears is not an investigation.
- 1Keep everythingThe analyst reports at once and keeps the solutions, standards and glassware untouched.
- 2Phase I lab checkQC head and analyst review the method, instrument log, calculations and sample prep together.
- 3Lab cause found?Only a documented, assignable lab error lets the first result be invalidated.
- 4Phase II full scaleQA joins; batch records and process data are reviewed, and any retest follows a written plan.
- 5Batch decisionA confirmed OOS leads to rejection or a QA-justified disposition, never averaging away the failure.
- 6Into CAPAThe root cause and other batches at risk go into the CAPA plan.
Your QC SOP holds the exact rules for retests and resampling.
Why does "retrain the operator" fail as a CAPA?
Because it treats the symptom. If a trained operator skipped a step, ask why skipping was easy: a confusing batch record, a rushed changeover, two look-alike labels. Retraining leaves those conditions in place, the event returns, and regulators read repeats as a weak CAPA system.
A few habits make root cause work stronger:
- Write the problem statement first. What, where, when, how big, stated with facts before anyone suggests a cause.
- Look for the system cause behind the person. Ask which document, equipment, layout or schedule let the mistake happen.
- Set the effectiveness measure at planning time. Deciding how to judge success after the fact invites a soft check.
What should one CAPA record hold?
Enough for an auditor to follow the story without asking anyone: source event, investigation, each action with its proof, and the final check.
Sample CAPA record · CAPA-26-047
- Source
- DV-26-114, granule moisture above limit
- Class
- Major, product impact assessed
- Root cause
- Dryer inlet probe drifting; no calibration alert between quarterly checks
- Corrective
- Probe replaced and recalibrated · Engineering · done with certificate
- Preventive
- Monthly probe check added for all three dryers · Engineering · SOP revised under change control
- Effectiveness
- No moisture failure across the next 15 batches on any dryer · QA · check due in 60 days
Sample record with roles, not names. Numbers are made up for illustration.
Can Zoho run a pharma deviation and CAPA workflow?
It can track one, within limits. Zoho Creator, Zoho's low-code platform, can hold intake, classification, investigation, owned actions and the effectiveness check in one searchable app. Where your site already runs a validated eQMS or LIMS for GMP records, that system stays the record and Zoho handles the work around it.
On compliance, Zoho states on its compliance page that its services carry ISO/IEC 27001 certification and SOC 2 reports, and that Zoho Sign offers controls meant to help life science firms with 21 CFR Part 11 and EU Annex 11. We configure Zoho to use those controls, compliance-ready the way Zoho describes it. Whether a Creator app may hold GMP data, and how it is qualified, is your QA head's decision.
- StandardReminders and escalations on open actionsDue-date nudges by email and Zoho Cliq, and an escalation to the QA head when an action runs late.
- ConfiguredDeviation, OOS and CAPA registers in CreatorForms, class rules, role-based approvals and a full field history. Creator Standard is ₹480 per user per month billed yearly, plus GST, per Zoho Creator pricing. Our deviation and CAPA app built on Zoho Creator shows the full build.
- ConfiguredSigned investigation reportsZoho Sign routes the final report and the closure note for signature and files the signed copy back on the record.
- CustomBatch lists and affected-lot searchBatch and lot data pulled from your ERP so the impact list is complete. Read how batch traceability works in Zoho.
- CustomRead-only links to a validated QMS or LIMSReference numbers and status exchanged through the vendor's API, approved by your validation team.
Counting open items by age is usually the first job worth moving out of a spreadsheet, and the Schedule M readiness check shows which other registers need the same care. The executed batch record belongs in its own validated system; our guide to electronic BMRs and 21 CFR Part 11 covers that line. For orders, stock and accounts across a plant, see Zoho for pharma manufacturing.
Free self-check
How healthy is your CAPA workflow today?
Tick what is true at your site now. Gaps in the first group are SOP work, before any software.
Who wrote this CAPA workflow guide?
Ikram is Founder and CEO of Elite Tech Corp, Zoho Advanced Partner of the Year 2025, with offices in Bangalore, Coimbatore and Kochi. Our team trains QA and floor staff in English, Hindi, Marathi, Tamil, Kannada and Malayalam. We hold no GMP certification, do not validate systems for clients and promise no inspection result.
FAQ
Deviation, OOS and CAPA: what QA teams ask
Want a second view on where your CAPA log stalls? Send us one closed deviation and we will walk it through with you.
Book my free Zoho fit assessmentWhat is the difference between a deviation and a CAPA?
A deviation is the event: something departed from an approved procedure or specification. A CAPA is the response to its root cause, naming corrective and preventive steps, who owns each, when it is due and how success will be judged. Not every deviation needs a CAPA, but the decision not to raise one should be written down.
Does every OOS result need a CAPA?
No. If the Phase I lab investigation finds a documented, assignable lab error, the corrective action may stay inside the lab. A confirmed OOS, or an invalidated one with a weak lab cause, usually leads to a CAPA. Your QC and QA SOPs set the rule.
How long should a CAPA take to close in pharma?
No single legal deadline exists. Sites set targets in their SOPs, often about 30 working days for an investigation and longer for actions. Auditors look for targets that exist, are met or extended with a reason, and closures that are not rushed.
What is a CAPA effectiveness check?
A dated test, set when the CAPA is planned, that shows whether the fix worked. For example, no repeat of the event across a set number of batches, or a measured drop in a defect rate. If the check fails, the investigation is reopened rather than closed.
Can Zoho Creator replace a validated eQMS for deviations and CAPA?
Not where your site needs a validated eQMS for GMP records. Zoho Creator can track deviations, OOS investigations and CAPA actions for teams on paper or Excel, or work beside a validated system. Zoho states its own certifications and the Part 11 controls in Zoho Sign; your QA head decides whether and how a Creator app is qualified.
Is a CAPA workflow required under Revised Schedule M?
Revised Schedule M asks for a pharmaceutical quality system that handles deviations, investigations and corrective and preventive actions, so a documented CAPA process is expected at licensed drug plants. Your regulatory head confirms the exact clauses that apply to your products.