Sub topic 11
Trust Status and Maintenance Windows
This chapter assumes you know how sandboxes differ from production, and that you have read the earlier chapters on the release timeline and sandbox preview. It covers how to find out when your org is being upgraded, what happens to users during the upgrade, and how to use Salesforce's status information in your release plan.
Why status information matters for releases
Salesforce upgrades every org on a published schedule. You cannot choose the hour, but you can see the schedule and plan around it. Two sources give you that information:
- Salesforce Trust (trust.salesforce.com), the public status site.
- Your own org, through the Maintenance section of Setup and through notification emails.
Both answer the same practical questions. When is my instance upgraded? Is the service healthy right now? Was a problem I see caused by Salesforce, or by my own change?
Instances and why they matter
A Salesforce org runs on an instance, which is a group of servers that hosts many orgs. Instances have names such as NA135 or EU44. Some instances also use a "CS" prefix for sandboxes, such as CS89.
Release timing, maintenance, and incidents are all reported per instance. So the first thing to know is your instance name. You can find it in several places:
- Setup, then Company Information, shows the Instance field.
- The domain of a classic My Domain URL often shows it.
- In the Trust site, you search for your instance or look it up by your org's ID or domain.
Record the instance for production and for each sandbox. Production and sandboxes are usually on different instances, and this is the reason a sandbox can be upgraded on a different date from production.
The Trust site
The Trust site has several areas useful for release work.
| Area | What it shows | How you use it in release planning |
|---|---|---|
| Status | Current health of each instance and service | Check first when users report slowness or errors |
| Maintenance | Planned maintenance and release upgrade windows per instance | Find the exact date and time your instance is upgraded |
| Incident history | Past and current incidents with notes | Separate platform problems from your own regressions |
| Release information | Release schedule for the upcoming and recent releases | Confirm preview, sandbox and production dates |
You can subscribe to an instance on the Trust site. Subscriptions send an email when the status changes or when maintenance is scheduled. Subscribe to your production instance and at least one preview sandbox instance, and use a shared mailbox or distribution list instead of one person's address. This keeps the information available when that person is on leave.
Reading the maintenance schedule
The release schedule lists, for each release, three kinds of dates:
- The pre-release org sign-up and preview window.
- The sandbox preview upgrade, when sandboxes on preview instances move to the new release.
- The production upgrade weekends, one for each group of instances.
Production upgrades are staggered over several weekends. Your instance appears in exactly one of these groups. The Trust maintenance page then gives the time window for your instance, usually on a Friday night through Saturday in the instance's local region, with the weekend start time depending on the data center.
Two points matter for planning:
- Sandboxes that are not on a preview instance are upgraded in the same period as production, and sometimes on a different weekend. Do not assume that your sandbox and production are upgraded together.
- Windows are published in UTC on the Trust site. Convert them to your users' time zones before you tell anyone. A Saturday maintenance window in UTC can fall on Friday evening for users in the Americas.
What happens during an upgrade
During the maintenance window, the org may be unavailable or in a restricted state for a short time. Salesforce usually keeps this to a few minutes, but the window is longer than the real downtime so that the work can finish safely.
What to expect:
- Users may be unable to log in, or may see a maintenance message, for part of the window.
- Some features may be read-only for a time.
- Integrations calling the API may receive errors. Salesforce does not hold requests while the org is unavailable.
- Scheduled Apex, batch jobs, and scheduled flows that are due inside the window may be delayed, or may fail and need to be run again.
- Long-running processes started before the window may be interrupted.
This list is why you should treat the window as an operational event, even though the upgrade needs no action from you.
Planning around the window
Make a short runbook for each release. A runbook is a written list of steps and owners. A minimal one looks like this:
- Before the window: pause or reschedule jobs that run inside it. Tell integration owners the dates.
- Before the window: confirm that no large data load or deployment is planned for the same weekend.
- During the window: do not deploy and do not start data loads. Watch the Trust site for changes.
- After the window: verify that scheduled jobs resumed, and that integrations reconnect.
You can check scheduled jobs with a SOQL query on CronTrigger. This query lists active scheduled jobs and their next run time, so you can see which ones fall inside the window.
sf data query \
--target-org my-production \
--query "SELECT CronJobDetail.Name, State, NextFireTime FROM CronTrigger WHERE State IN ('WAITING','ACQUIRED','EXECUTING') ORDER BY NextFireTime"Compare NextFireTime with the maintenance window in UTC. Any job inside the window is a candidate to reschedule. After the upgrade, run the same query. A job whose NextFireTime is in the past and whose state is still WAITING has been missed, and you should investigate it.
Status versus your own regressions
After the production upgrade, the first question when something breaks is whether the platform or your configuration is at fault. Trust helps you answer this.
| Symptom | Check on Trust first | Likely meaning |
|---|---|---|
| Many users cannot log in at the same time | Instance status and incident history | Platform incident or maintenance still in progress |
| A single flow or Apex class fails | Nothing found on Trust | Probably a regression in your org; use debug logs |
| Slow pages for all users on one instance | Instance status, performance notes | Platform performance issue |
| Integration errors only after the weekend | Maintenance notes, then your own integration logs | Possibly a change in API behavior or a timed-out connection |
A green status does not prove that your customization is fine. It only shows the platform is healthy. If Trust shows no incident and the failure is limited to your org, treat it as your own regression and follow the triage steps in the post-upgrade chapter.
Preview instances and status
If you chose preview sandboxes, they sit on an instance that is upgraded earlier. The Trust site marks these instances in the schedule. The behavior you see on a preview sandbox is the behavior production will have after its upgrade, with one caveat: a preview sandbox is only a prediction. Differences in data volume, integrations, and enabled features mean that a clean preview test lowers risk and does not remove it.
Also note that a sandbox refresh can change its instance. If you refresh a sandbox near the preview cutoff, the new copy can land on a different instance and so on a different release. Check the instance after each refresh and before you start a test cycle. A refresh is a common cause of the question "why does this sandbox not have the new feature?".
Timeline of a release weekend
The diagram shows the order of events around one production upgrade.
Common mistakes
- Reading the date for the wrong instance, for example using a sandbox date for production.
- Forgetting that Trust times are in UTC.
- Relying on one person's email subscription.
- Scheduling a deployment or data migration during the release weekend.
- Assuming a green Trust status rules out a regression in your own org.
- Not re-checking the instance after a sandbox refresh.
Exercises
Exercise
Your production org is on one instance and your full-copy sandbox is on another. The Trust maintenance page shows the production upgrade is Saturday 03:00 UTC, and most of your users are in US Pacific time. When should you tell them to expect the maintenance, and which two actions should be completed before then?
Show answer
Saturday 03:00 UTC is Friday evening in US Pacific time (Friday 7 PM PST, or 8 PM when daylight saving time applies), so tell users to expect maintenance on Friday evening. Before then, reschedule or pause scheduled jobs and batch processes that fall inside the window (using a CronTrigger query to find them), and make sure no deployment or data load is planned for that time. Notifying integration owners is also a good action.
Exercise
After the upgrade, one Flow fails for several users, but the Trust site shows your instance as available with no incidents. Is this a platform problem? What do you do next?
Show answer
It is most likely a regression in your own org, because Trust shows no incident and only one customization is failing. Next, reproduce the error, check the debug logs or flow error emails, compare the behavior with your preview sandbox test results, and review the release notes and Release Updates for a change that affects that Flow.