Sub topic 14
Monitoring and Triage After the Upgrade
This chapter assumes you can administer a Salesforce org, know the difference between sandbox and production, and have read the earlier chapters on the release timeline, regression testing, and the readiness checklist. It covers the last step of release work: watching production after the upgrade and deciding what to do when something breaks.
Why the work continues after the upgrade
Preview sandboxes and scratch orgs catch most problems. They do not catch all of them. Production has real data volumes, real user behavior, integrations that sandboxes often lack, and edge cases nobody thought to script. A regression can also appear only when a certain record type, profile, or scheduled job runs for the first time after the upgrade.
So the goal after the upgrade is not to prove that nothing is wrong. It is to find problems quickly, decide how serious each one is, and route it to the right person.
Build a monitoring window
Pick a fixed monitoring window and name an owner for it. A common pattern is intensive checks on the first business day after your instance upgrades, lighter checks for the rest of that week, and a review at the end of week two.
The upgrade happens during a weekend maintenance window. Your users find the first problems on Monday morning, so plan staffing for that morning. Confirm your instance's upgrade time on Salesforce Trust before you plan. Also check Trust for incidents on your instance, because a problem may be a platform issue and not a change in your org.
What to monitor
Watch several sources at once. No single one shows everything.
| Source | What it shows | Where to find it |
|---|---|---|
| Salesforce Trust | Platform incidents and maintenance on your instance | trust.salesforce.com |
| Apex Exception Emails and Apex Jobs | Failed Apex, batch, and queueable jobs | Setup, Apex Jobs and Apex Exception Email |
| Flow error emails and paused interviews | Failed flow runs | Email to the flow's last modifier, and Paused and Failed Flow Interviews in Setup |
| Debug logs | Step-by-step execution of a specific user's action | Setup, Debug Logs |
| Event Monitoring or Event Log Files | Login, API, and page performance trends (if licensed) | Event Log Files through the API or Event Monitoring tools |
| Integration logs | Failed callouts and inbound API calls | Your middleware and the external systems |
| User reports | Problems no log captures, such as layout or behavior changes | Your help desk or a shared channel |
Do not rely on user reports alone. Many users will work around a problem without telling you, and a failing background job produces no user complaint until the data is stale.
Run smoke tests first
A smoke test is a short, fixed set of checks that confirms the most important paths still work. Run it as soon as the upgrade finishes, before users log in. Use the key user journeys you already identified during regression testing. For example:
- Log in as a user for each major profile.
- Create a lead and convert it.
- Create an opportunity and move it through stages.
- Submit a record for approval.
- Run one key report and one dashboard.
- Send a test message through each critical integration.
If you automated your regression tests earlier, rerun the smallest useful subset against production. Take care here: Apex tests that insert data are safe to run in production because they roll back, but UI tests that create records leave data behind. Use clearly labeled test records and a plan to remove them.
You can run local Apex tests in production, with the right permissions, using the CLI.
sf apex run test \
--target-org my-production-org \
--test-level RunLocalTests \
--result-format human \
--wait 20Running all local tests consumes resources and can be slow in a large org. Run them off-peak, and prefer a targeted set for a daily check.
Triage: sort problems by severity
When reports start arriving, classify each one before you investigate. A simple scale keeps decisions consistent.
| Severity | Meaning | Example | Target response |
|---|---|---|---|
| Critical | Core business process is blocked for many users, or data is being corrupted | Opportunities cannot be saved, or an integration is writing wrong values | Start immediately, escalate |
| High | Important process fails, but a workaround exists | A flow errors for one record type | Same day |
| Medium | Feature behaves differently or looks wrong, with little business impact | A page layout shifts | Within the week |
| Low | Cosmetic or rare | A label wraps oddly | Backlog |
Data corruption outranks everything. A broken page stops users from working, which is visible. A silent bad write spreads through reports and downstream systems, and it is harder to undo. If you suspect it, pause the process that writes the data first, then investigate.
Isolate the cause
A problem after an upgrade is not always caused by the upgrade. Ask these questions in order.
- Is it a platform incident? Check Trust.
- Did something else change? Review the Setup Audit Trail and your deployment history for the same period. A deployment on Friday can be mistaken for a release regression.
- Does it match a known change? Compare the symptom with your impact assessment, the release notes, and the Release Updates you tracked. Many regressions come from a Release Update that was enforced automatically, or from a behavior change you marked as low risk.
- Can you reproduce it? Reproduce it as the affected user, or with Login As if your org allows it. Compare it against a sandbox that is still on the previous release, if you kept one, and a preview sandbox on the new release. If the problem appears only on the new release, the release is the likely cause.
- What do the logs say? Open a debug log for the failing action. Look for the first exception, not the last one.
The Setup Audit Trail keeps recent changes to configuration. You can also query it with SOQL through the SetupAuditTrail object.
SELECT CreatedDate, CreatedBy.Name, Action, Section, Display
FROM SetupAuditTrail
WHERE CreatedDate = LAST_N_DAYS:7
ORDER BY CreatedDate DESCFix, work around, or escalate
You cannot roll back a Salesforce release in production. Plan for this. Your options are limited to changing your own org.
- Fix forward. Correct your Apex, flow, or configuration and deploy. This is the normal path. Use your usual change process, with an expedited review for critical issues.
- Work around. Deactivate a flow, disable a trigger with a custom setting or custom metadata flag, or change a validation rule. This buys time, but record every temporary change so it does not become permanent by accident.
- Defer a Release Update. Some Release Updates let you postpone enforcement until a stated date. If a change is not yet enforced, you can sometimes turn it off in Setup while you fix your code. Check the update's page, because many have a hard deadline.
- Escalate to Salesforce Support. Open a case when you can reproduce a problem and it does not match any documented change. Include the release version, the instance, the steps to reproduce, an example record or user, and debug log excerpts. Cases with clear reproduction steps get resolved faster. Check Known Issues too, because another customer may already have reported it, and you can follow the issue there.
When a fix changes metadata, remember the API version. Raising sourceApiVersion in sfdx-project.json can change how deployed components behave, so raise it deliberately and test it, not as a side effect of fixing a bug.
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"sourceApiVersion": "65.0"
}Communicate during triage
Silence makes small problems look large. Keep a short status loop going.
- Post known issues and workarounds in one place that users already read.
- Tell users when a fix is deployed, and who to contact if it does not work.
- Give leadership a daily summary during the first week: number of reports, open items by severity, and next steps.
- Tell integration owners promptly if a change affects the data they send or receive.
Close out with a retrospective
At the end of the monitoring window, hold a short review and feed the results back into the process.
- Which problems did preview testing miss, and why? Add those cases to your regression suite.
- Which release notes entries did you rate wrongly? Adjust your impact assessment criteria.
- Were Release Updates tracked early enough?
- Did communication reach the right people?
- Update the release-readiness checklist, so the next release starts with these lessons.
Common errors
- Blaming the release for everything. Check the audit trail and deployment history first.
- Testing only as an administrator. Admins have broad permissions, so a profile-specific failure stays hidden. Test as representative users.
- Leaving workarounds in place. Track temporary changes and remove them.
- Ignoring scheduled and batch jobs. They fail without any user seeing it. Check Apex Jobs and scheduled flows.
- Skipping the retrospective. Without it, the same gaps return at the next release.
Exercise
Two hours after your production upgrade, users report that a record-triggered flow now fails for opportunities with a specific record type. Trust shows no incident. List the first three steps you take, in order, and explain why you cannot simply roll back the release.
Show answer
First, check the Setup Audit Trail and deployment history for recent changes that could explain the failure, so you do not blame the release for your own change. Second, reproduce the failure as an affected user and read the flow error email or debug log to find the first error, then compare against a preview sandbox or a sandbox still on the previous release. Third, check whether the symptom matches a release note or a Release Update in your impact assessment. You cannot roll back because Salesforce upgrades all orgs on an instance together and does not offer customers a way to revert a release. You fix forward by correcting the flow, or you work around it by deactivating the flow or adjusting the criteria, record that temporary change, and open a Support case if the problem is not documented.
Exercise
Why should post-upgrade monitoring include scheduled and batch jobs, and where do you check them?
Show answer
These jobs run without a user in front of them, so a failure produces no complaint until data becomes stale or wrong. Check Apex Jobs in Setup for failed batch, queueable, and scheduled Apex, check Paused and Failed Flow Interviews for flow failures, and review Apex Exception Email and flow error email. Also confirm that jobs tied to month-end or quarter-end are checked when they first run after the upgrade.