ERPNext version 15 to 16 upgrade

How to plan and rehearse an ERPNext v15 to v16 upgrade before v15 support ends in 2027, covering custom apps, scripts, data checks and rollback, and what to hand to a partner or keep in-house.

On this page

Why ERPNext version 15 to 16 upgrade planning starts now

If your ERPNext runs on v15 with custom apps, Server Scripts, integrations and years of posted data, you should start planning the move to v16 now. According to Frappe's supported versions page, version 15 is planned to be supported until the end of 2027, and version 16 until the end of 2029. The window is long enough to test properly, but short enough that a rushed or deferred upgrade will land in a period when your team is busy with other work. The upgrade is a planned project, not a routine update.

Both versions receive frequent minor releases. The frappe/erpnext releases page shows v16.51.1 released on October 15, 2026 and v15.123.0 on October 14, 2026, and running bench update within a major version is the routine path. A move from v15 to v16 is different. It changes the framework and the app versions your code depends on, so it can alter DocType behavior, scripts, custom app APIs and the database schema that bench migrate applies. Your custom apps and integrations were written against v15 behavior, so each one needs a compatibility check before anything reaches production. Your own customizations carry that risk, not the core code.

This page covers how to assess compatibility of custom apps, Server Scripts and integrations, how to run a staging migration with bench migrate on a copy of production data, how to check the migrated data, and how to plan a rollback if the cutover fails. Start by inventorying your customizations and confirming with your partner or Frappe which of them your v16 target supports. If you are on Frappe Cloud, also confirm the support plan your version requires, because the supported versions policy ties warranty coverage to a listed version and a matching plan.

Which ERPNext and Frappe parts the upgrade touches

A major upgrade from version 15 to 16 touches more than the ERPNext application code. The Frappe Framework, your custom apps, scripts, schema changes, background jobs and the bench CLI all move together, so each one needs its own inspection before the staging run.

Frappe Framework and ERPNext versions

Confirm that your Frappe Framework and ERPNext branches are both moving to the 16 line together, since ERPNext 16 is built on the matching framework release. Record the exact versions currently running in production, including any patched builds, so the target pair can be pinned in staging. Check that every app in the bench is listed as compatible with the version pair you choose.

v15 support ends
2027
ERPNext releases

Custom Frappe apps

Each custom app is a separate codebase with its own hooks, patches and dependencies, and it must be tested against version 16 before any production change. Inventory every installed app, its pinned branch and its maintainer. Apps that have not been updated for the new framework are the most common reason an upgrade stalls, so treat them as a go or no-go item.

Server Scripts and their enablement

Server Scripts run Python on document events and API calls, and from version 15 they are disabled by default and must be enabled with the server_script_enabled setting. Confirm whether your site enables this setting and list every script, its trigger and its owner. Scripts that rely on removed or renamed APIs will fail silently or error on save, so each one needs a test case in staging.

Client scripts, custom fields and DocTypes

Client scripts, custom fields, property setters and custom DocTypes live in the database and in app files, and they can conflict with changed core forms or fields. Export customizations so they can be compared before and after the migration. Check the form, print format and report that depends on each field, because a renamed or retyped field breaks those views even when the database migrates cleanly.

Scheduled jobs and background workers

Scheduled jobs, the scheduler and the background workers process invoices, stock postings, emails and custom queues, and a failed job may not show an obvious error in the UI. Confirm which queues your custom code uses, and check that the scheduler and workers restart on the new code. Watch the failed job log after the staging run, since a job that quietly stops is harder to spot than a failed migration.

The bench CLI and the migrate sequence

The bench command line tool performs the update, the database migration and the build steps, and the order of those steps matters. Record the bench version, the commands used in each environment and any custom flags in a runbook. Run the same sequence on staging that you plan to run in production, so that output and timing can be compared against a known baseline.

Frappe repository

How the upgrade path differs by deployment model

On Frappe Cloud, the platform hosts the sites and handles much of the operational work, but the upgrade still depends on your own app and script inventory. Frappe's supported versions policy says customers must be on a listed version and subscribed to a matching Frappe Cloud support plan to receive warranty coverage, so the support plan has to move with the version you target. Public shared benches do not allow Server Scripts, which matters if your v15 site relies on them.

  • Support plan match: Confirm that your Frappe Cloud support plan covers the version you are moving to before you schedule the cutover.
  • Server Scripts: Public shared benches do not allow Server Scripts, so any script logic must be moved to a dedicated bench, rewritten as a custom app, or retired.
  • Staging copy: Ask how a staging site is created from production and whether it can be run on the target version before cutover.
  • Rollback: Confirm with Frappe how a site can be restored to its pre-upgrade state and what data is kept.
  • Who runs migrate: Confirm whether the platform performs the migrate step or whether your team or partner must trigger it.

Before committing, check the support plan, the script inventory and the written rollback and staging arrangements.

The staged upgrade keeps production untouched until the go decision

The path starts with an inventory and compatibility review, then a production backup that becomes the rollback point. The backup is restored into a staging copy, where bench update and bench migrate run against version 16 before any custom app or script fixes are made. Data checks and user acceptance testing feed the go or no-go decision. Only a go moves to production cutover. A failed check or a no-go sends the team back to the backup, so check that restore works before cutover begins.

Staged upgrade path from backup and staging through to cutover or rollback.

Build sequence for a staged v15 to v16 upgrade

This sequence moves an ERPNext v15 installation to v16 through a rehearsed staging run, so the production cutover is a repeat of a migration that has already been proven, with a tested rollback path. Each step ends with a check that tells you whether to continue.

  1. Inventory installed apps and versions

    Record the ERPNext and Frappe versions, every installed app (including custom apps and their git branches or commits), the Python and Node versions in use, and the scheduler and worker status of production. Your administrator or partner runs bench version and lists apps from the bench directory, then saves the output with the site configuration. Done when you have a written inventory that matches what the live site reports on its About page and in the bench, and every custom app has a named owner who can answer compatibility questions.

  2. Review v16 release notes and custom app compatibility

    Read the ERPNext and Frappe v16 release notes against your inventory, focusing on changed DocTypes, removed or renamed methods, and changed report and print behavior that your processes depend on. For each custom app, check whether its maintainer has a v16 branch and whether its hooks, patches and imports still work. Confirm the Frappe support status for your version on the supported versions page before committing dates. Done when each custom app is marked as compatible, needs changes, or is blocked, with an owner for each open item.

  3. Take and verify a full backup

    Create a full bench backup that includes the database and the public and private files, then copy it to a location outside the production server. Verify the backup by checking file sizes and checksums and by confirming the backup contains the site configuration and the apps list. Keep the backup until the upgrade is accepted, and record the exact backup timestamp so the rollback procedure refers to a known point. Done when a second person has listed the backup files, confirmed the checksums, and signed off that the copy is readable from a different host.

  4. Restore to a staging environment matching production

    Restore the verified backup to a staging bench that uses the same ERPNext, Frappe and custom app versions as production, the same database engine version, the same scheduler and worker setup, and the same integrations pointed at test endpoints. Disable outgoing emails, payment gateways and external API writes on staging before the first login so no live transaction is sent. Done when the staging site loads, its record counts for key DocTypes match production at the backup point, and integration endpoints are confirmed as test endpoints.

  5. Run bench update and bench migrate on staging

    Update the bench and the apps to the v16 versions you have validated, then run bench migrate on the staging site and capture the complete log. Review every patch that ran and every error or warning, because migrate stops at the first failing patch and leaves the site in a partial state. Done when migrate completes without an error exit, the log is saved with the staging run identifier, and the site loads in the browser without server errors.

  6. Fix custom apps and scripts

    Address each failure from the migrate log by changing custom app code, updating Server Scripts and Client Scripts, and adjusting custom fields, workflows and print formats that the patches rejected. Server Scripts are disabled by default from version 15 and must be enabled with the server_script_enabled setting, so confirm whether your staging and production settings match and whether any script depends on it. Commit each fix to version control and record which issue it resolves. Done when every item in the compatibility list is closed or formally accepted as a known gap with a plan.

  7. Rerun migrate until clean

    Restore the staging site to the verified backup point, then run the full update and migrate again using the corrected code, so the final run is a clean replay rather than a sequence of patches applied on top of earlier failures. Repeat until a full run finishes with no errors and no unexplained warnings. Done when two consecutive clean runs from the same backup produce identical logs and the same schema state, which shows the procedure is repeatable.

  8. Run data and report checks

    Compare key figures between the pre-upgrade backup and the upgraded staging site: general ledger totals, trial balance, stock balances by warehouse, open sales and purchase documents, and the outputs of the reports and print formats your finance and operations teams use daily. Check user roles, permissions and any LDAP or Social Login configuration still maps users correctly. Use the Data Import tool only for corrections in small batches, since its documentation advises a few thousand records at a time. Done when reconciliation shows zero unexplained differences, and business owners sign off on the reports they rely on.

  9. Rehearse cutover and rollback timing

    Run the full production cutover sequence on staging as a timed rehearsal, including freezing user writes, taking the final backup, running update and migrate, switching integrations and reopening access. Time each step, then perform a rollback rehearsal from the final backup to confirm the restore path works and measure how long it takes. Agree the go or no-go criteria and the person who makes the call. Done when the rehearsal log shows each step, its measured duration, a successful rollback restore, and a signed cutover runbook that names owners for every action.

Decisions before the upgrade: in-house or partner, cutover window, rollback method

This table compares the five main choices to settle before the v15 to v16 move, with the trade-off and the operational cost of each. Read each row against your own custom apps, data volume and tolerance for downtime, then use the chosen options to build the staging plan.

DecisionOptionTrade-offWhen it fits
Who runs the upgradeIn-house teamKeeps knowledge in house, but the team carries staging runs, bench migrate errors and on-call during cutoverSimple sites with few custom apps and an admin who has already run a bench update
Who runs the upgradePartnerAdds a fixed scope and written deliverables, but the client still pays for internal testing time and sign-offHeavy customizations, several custom apps or a tight internal calendar
Custom appsUpgrade custom apps firstShows compatibility problems early, but requires code changes and retesting before the core upgradeApps you intend to keep and that hold business logic
Custom appsRemove customizationsShrinks the upgrade surface, but users lose features and process must be re-approvedCustomizations that duplicate standard ERPNext features
CutoverSingle cutoverShortest overlap and fewer reconciliation steps, but the downtime window and rollback point must be agreed in advanceSmall databases and teams that can take a planned outage
CutoverParallel runLets finance and stock compare results before go-live, but doubles checks and needs a clear rule for which system holds the live dataAccounting or stock periods where totals must match before sign-off
RollbackRestore backupFastest path back to v15 data taken before the upgrade, but any transactions entered on v16 after cutover are lost unless re-keyedShort window between backup and go-live with a clear freeze on entries
RollbackReverse migrationKeeps post-cutover transactions, but needs a tested export and import path and much more effort to validateSites where users must keep working on v16 for days before a decision
Server ScriptsKeep enabledPreserves business logic, but the setting must be reviewed on v16 and scripts must be re-tested against the new versionSites that rely on existing scripts and have reviewed them
Server ScriptsDisable and rewriteReduces risk from unreviewed code, but needs replacement logic in a custom app or client scriptSites that want tighter control and fewer in-database scripts

Access, secrets and scripts to review during the upgrade

A major upgrade rewrites more than code. Role assignments, login providers, API credentials and copies of production data all sit in the database and in files that move with it. The cards below cover the access and secret controls to re-test on staging before any production cutover.

Role and user permissions after migrate

Run bench migrate on staging, then compare role permissions and user permissions against a saved export from v15. Check that each role still sees only its companies, cost centers and documents, and that custom permission rules you added through the UI still apply. Record who holds System Manager and Administrator rights, because a permission change that looks harmless can widen access to payroll or bank records. Ask your partner or internal team to sign off this comparison before go-live.

Data Import docs

Server Scripts stay off unless needed

Since version 15, Server Scripts are disabled by default and must be enabled with the server_script_enabled setting. Confirm whether your v15 site had it turned on, and if so, list every script, its DocType event or API endpoint, and its author. Re-review each one against v16 DocType behavior before enabling it again, and keep the setting off in production unless a documented need exists. Hosted shared benches on Frappe Cloud do not allow these scripts, so a script that works on your self-hosted site may not be portable.

Default since v15
Disabled
Server Script docs

LDAP and Social Login configuration

LDAP Settings and Social Login Keys hold bind credentials, client secrets and OAuth endpoints. Check that the upgrade keeps these records intact, that group to role mappings still match your directory, and that TLS options are unchanged. Confirm that the new site still allows local administrator login as a fallback. Review who can edit these records, since changing a mapping can grant roles at the next login.

LDAP integration docs

Secrets kept out of exported files

Site configuration files, exported fixtures, JSON app files and backup archives can contain database passwords, API secrets and OAuth client secrets. Before you export customizations from staging or share a migration bundle, search those files for credentials and remove them. Store secrets in the server environment or a secrets manager, and restrict who can read backup archives. Treat any file that leaves the server as potentially exposed and rotate secrets that were ever copied to a developer laptop.

Personal and financial data in staging copies

A staging site built from a production backup holds the same customer, supplier, employee and bank records as production. Limit who can log in to staging, keep it off public networks, and apply the same role restrictions as production. Mask or remove personal data where the upgrade test does not need it, and set a deletion date for the copy. Document where staging backups are stored, since an unprotected copy is a common source of data exposure during projects.

API keys and tokens to re-validate

Integrations that call the Frappe REST API use API keys and secrets tied to specific users. After the upgrade, confirm that each key still maps to the intended user, that its roles still allow the calls it makes, and that webhooks still send to the right endpoints. Rotate any key that was shared across systems or that belonged to a user who has left. Record each integration owner so that someone can approve changes to its credentials.

Social Login Key docs

What drives the effort of an ERPNext v16 upgrade

This table compares the factors that expand or shrink an ERPNext version 15 to 16 upgrade, with the reason each one adds work and how to keep it manageable. Use it to size the upgrade before asking for a quote, since most of the effort sits in custom code and integrations rather than in the core migration. The main takeaway is that a stock installation with few scripts and clean data is far cheaper to move than a heavily customized one, so inventory those items first.

DriverWhy it adds effortHow to reduce it
Number and depth of custom appsEach custom Frappe app must be checked against v16 APIs, hooks and DocType changes, and any app that patches core code needs rework or redesign.Inventory every app, remove unused ones, and move patches into supported hooks before the staging run.
Count of server scriptsServer Scripts are disabled by default from version 15, so each one must be enabled, reviewed and retested against v16 behavior.Keep only scripts still in use, document their purpose, and move complex logic into a custom app.
Count of client scriptsClient scripts run in the browser and depend on field names and form events, so renamed or changed fields can break them silently.Test key forms and workflows after migration and record which scripts touch which DocTypes.
Volume and age of dataLarge or old datasets take longer to migrate and reveal more inconsistent or orphaned records that block the upgrade.Archive closed records, clean masters, and run data checks on a copy of production before the staging run.
Custom fields, print formats and reportsCustomizations layered on standard DocTypes must be reviewed for field and layout changes in v16.Keep a list of customizations with owners and reproduce them in a versioned app where possible.
Integrations: LDAP, Social Login and REST API consumersLDAP group mappings, Social Login Keys and external API clients each need login and endpoint retests, and external systems may depend on response formats.Test each login path and each API consumer in staging with real credentials and tokens, and confirm the changelog for affected endpoints.
Number of environmentsEach environment (development, staging, production) repeats the migration and testing, and drift between them causes surprises.Keep environments on the same app versions and rebuild staging from a recent production backup.
Compliance evidence requirementsChange records, test results, backup proof and rollback rehearsals must be kept in a form an auditor or internal assessor can review.Agree the evidence list before work starts, and capture test and migration logs as each step completes.

How to prove the upgraded system works and can be rolled back

The upgrade is only finished when you can show, with evidence, that the v16 system posts the same financial and stock results as v15 and that you could return to v15 within a window you have timed. Treat the staging migration log as the first gate: run bench migrate on a restored copy of production and review the full output, not just the exit code. Any patch that errors, is skipped, or is rerun without explanation needs a documented fix and a fresh staging run before go-live. Ask your partner or Frappe for the list of v16 breaking changes that apply to your installed apps, because custom fields, Server Scripts and custom apps are where most migration surprises appear.

Next, run smoke tests on the documents that carry money and material: a sales invoice with taxes, a payment entry, a purchase receipt, a stock entry, a work order and a job card if you run manufacturing. Confirm that submitted documents, print formats, and reports open and calculate as they did before. Then reconcile against the pre-upgrade backup. Compare the general ledger totals, the trial balance by account and cost center, and stock balances by item and warehouse, and record every difference with its cause. Also verify that the scheduler and background workers are running, because recurring jobs such as reminders, recurring invoices and report generation fail silently when they stop.

Finally, test the edges that users rarely see: LDAP or Social Login Key sign-in, role and user permission behavior for a sample of each role, and API calls made by your integrations using their real tokens. Schedule a timed rollback rehearsal on staging: restore the pre-upgrade backup, bring the bench back to v15, and measure how long it takes and what data you lose. Confirm with your Frappe or partner support plan what version rollback is supported, and check your backup retention and restore procedure before the production window is fixed.

What to monitor, back up and document after cutover

What should we monitor first after moving ERPNext from v15 to v16?

Watch error logs and background job queues first, because most post-upgrade failures show up there before users report them. Check the web and worker logs for Python tracebacks, watch the scheduler for jobs that fail repeatedly, and confirm that scheduled reports, email queues and integrations run on their normal timings. Review these checks daily through the first business cycle that includes month-end or period-close activity, since accounting and stock postings are where data problems tend to surface. Agree on who reads the logs, how fast they respond, and who decides whether to roll back.

Should we take a fresh backup immediately after cutover?

Yes. Take a fresh backup of the database and files as soon as the upgraded v16 site is confirmed working, and store it separately from the pre-upgrade copy. Without it, a restore after the first day of live use would roll back every transaction entered since cutover. Confirm that the backup includes the site files, the private files and the database, and test that it can be restored to a non-production bench before you rely on it. Ask your team which backup tooling and retention schedule will apply to the new version.

How long should we keep the pre-upgrade backup for rollback?

Keep the pre-upgrade backup for the rollback window you agreed in the plan, and do not delete it until the business has signed off on v16 and the window has closed. The window should cover at least one full accounting period, so that period-end entries, tax reports and reconciliations have been tested on the new version. Record where the backup is stored, who can restore it, and the exact steps for restoring the v15 site and its custom apps. Rollback is much harder once users have entered significant new data, so decide the cutoff point in advance.

What documentation should we update after the upgrade?

Update the runbooks, the custom app compatibility record and the deployment inventory so they describe v16. Each entry should list the app name, version, source repository, the ERPNext version it was tested against, and any changes made to Server Scripts, client scripts, custom fields or patches. Record the bench commands used for update and migrate, the staging results, known issues and the owner for each custom app. Keep the rollback procedure in the same document set so that the on-call engineer does not need to reconstruct it under pressure.

How should we schedule minor release updates on v16?

Set a regular cadence for minor release updates and test each one on staging before production. The ERPNext releases page shows that both supported major versions receive frequent minor releases, so an unplanned update schedule can leave a site behind quickly. For each minor release, review the release notes, run the update in staging, execute your smoke tests on custom apps and integrations, and then schedule the production change in a low-activity window with a fresh backup taken beforehand. Confirm with your partner or Frappe support whether any support plan you hold covers this work.

Why should we track the v15 end of support date in the plan?

Track it because the v15 support window is the deadline that sets your upgrade plan, and it should appear in the project schedule and the risk register. Frappe's supported versions page lists version 15 as planned for support until the end of 2027, and that date determines when security and bug fixes stop for the old line. Check the current date on the supported versions page when you set the plan, since the schedule can change. Also note that Frappe warranty coverage depends on running a listed version with a matching support plan, so confirm the terms before you commit.

What should we check in logs and jobs during the first week?

Check for recurring errors, failed background jobs and any drop in scheduled job completion. Focus on the Error Log, the failed jobs queue, email queue errors and the worker output, and compare them with the v15 baseline you recorded before the upgrade. Treat a new error that repeats across several days as a defect, even if users have found a workaround. Record each finding with its date, the affected document type, and the fix or decision, so the compatibility record stays accurate.

How DeployOpen scopes, rehearses and hands over an ERPNext upgrade

DeployOpen plans the ERPNext version 15 to 16 move as a written, fixed-scope piece of work inside your own infrastructure. We start from your custom apps, scripts and data, rehearse the upgrade on a staging copy, and hand over the results with a rollback path your team can run.

How we scope

  • Inventory every custom app, custom field, client script and Server Script that your sites depend on.
  • Confirm which sites, benches and environments the upgrade covers, including production, staging and any test sites.
  • Agree the scope, deliverables and timeline in writing before any work starts, with an itemized list of what is excluded.

How we build

  • Run bench migrate against a staging copy of production, using a recent backup and the same app versions.
  • Check each custom app and script against v16 behavior, then fix or replace what fails with documented changes.
  • Reconcile key records such as ledgers, stock balances and open documents before and after the test run.

How we hand over

  • Deliver a runbook covering the cutover steps, verification checks, timings observed in staging and the rollback procedure.
  • Document every code change, configuration change and known issue, so your team can review and maintain them.
  • Walk your administrators through the production cutover and the post-upgrade checks, with a written sign-off step.

How we support

  • Offer post-upgrade support during the agreed window to resolve issues found in production use.
  • Provide ongoing support, upgrades and continuous testing as a retainer, if your team wants that continuity after the move.
  • Confirm with Frappe which support plan applies to your version and hosting model before you commit to a support path.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.