Business Central Extensions From Several ISVs Break Posting After Every Update: How to Isolate the Cause

A troubleshooting guide for sales posting that stops after updates: reproduce on the next version in a sandbox, uninstall extensions in halves, capture event subscriber conflicts as evidence, and decide who owns the per-tenant extensions.

Stop arguing about whose extension broke posting and isolate it. Copy production to a sandbox, update that sandbox to the next version (a preview or the new major), and reproduce the failure with one known sales document. Then uninstall extensions in halves, following their dependencies, until the error disappears, and narrow it to one app or pair of apps. Capture the conflict as evidence: the AL stack trace from telemetry in Application Insights, a snapshot debugging session, and the subscribers to posting events such as OnBeforePostSalesDoc. Give each ISV a reproducible case. When the old partner is gone, the per-tenant extensions are yours: secure the source, the repository and a named owner for every app.

Why do extensions from several ISVs break sales posting after a Business Central update?

Because posting is where every extension meets. When a sales order or invoice is posted, the standard Sales-Post codeunit raises a long series of events, from OnBeforePostSalesDoc at the start to OnAfterPostSalesDoc at the end, and every app that adds a field, a check, a tax calculation, an EDI message or a warehouse step subscribes to some of them. Each ISV tests its own app against the standard application. Nobody tests your particular combination except you.

Microsoft's documentation is plain about the rule that makes this fragile: when an event is raised, the subscriber methods run one at a time in no particular order, and you cannot specify the order. Two apps that each assume they run first, or that each take over the same step, can work for months and then fail when an update changes the code around them. Business Central online receives two major updates a year, starting in April and October, with minor updates in the other months, so the failure tends to come back on a schedule.

What changed in the updateWhat breaksTypical symptom
An event was obsoleted or its signature changedAn extension still subscribes to the old oneThe extension cannot be installed or upgraded, or its logic silently stops running
Standard posting code moved or gained new eventsA subscriber that skips standard code with an IsHandled flag now skips more, or less, than beforePosting completes with wrong entries, or stops with an error from inside the standard code
One ISV released a new version on its own scheduleIts subscribers now change a record another app readsAn error naming a table or field from an app that was not updated
Permissions in the standard application changedA subscriber reads or writes a table the posting user has no rights toA permission error during posting for ordinary users but not for administrators

How do you reproduce a posting failure on the next version before it reaches production?

Copy production to a sandbox and update that sandbox to the version that failed, or, before a major update, to the preview version Microsoft makes available for sandboxes. Then post one known document, the same customer, items and quantities as the failure, using Preview Posting first so nothing is committed. A failure you can reproduce on demand is worth more than any amount of discussion about logs.

Microsoft also checks per-tenant extensions for compatibility with the next major update and emails the notification recipients registered in the Business Central admin center when it finds problems, as described in managing updates in the admin center. If those emails go to the departed partner, or to nobody, the warning arrives and is never read. Note that no email is sent for updates to preview versions, so preview testing has to be on someone's calendar.

  • Keep a small set of reference documents for reproduction: a standard sales order, an order with item tracking, a credit memo, a prepayment and an intercompany or EDI order if you use them.
  • Reproduce with an ordinary user account as well as an administrator, because permission conflicts only appear for the former.
  • Check that the notification recipients in the admin center are your own people and the party that now maintains your extensions.

How do you find which extension breaks posting by uninstalling in halves?

Treat it as a binary search. Take the third-party and per-tenant extensions in the sandbox, uninstall half of them without deleting their data, and post the reference document again. If the error disappears, the cause is in the half you removed; if it stays, it is in the half still installed. Halve the guilty group again, reinstall the rest, and repeat. With a typical set of extensions, a handful of rounds narrows it to one app.

Two complications are normal. Dependencies mean an app cannot be uninstalled while another app depends on it, so each round removes an app together with its dependants, and the halves follow the dependency graph rather than an alphabetical list. And conflicts between two apps show a characteristic pattern: the error disappears when either one is removed. When that happens you have found a pair, and the fix is a conversation between two vendors, not a bug in one of them.

  • Uninstall without deleting extension data, so reinstalling restores the app as it was.
  • Write down every round: what was installed, what was posted, and the result. That table is the evidence the vendors will ask for.
  • Do not halve in production. Removing an app there removes its function for every user and can leave documents half processed.
  • If the error remains with every third-party app removed, the cause is in your per-tenant extensions or in the standard application, and the same method applies to those.

How do you capture an event subscriber conflict as evidence an ISV cannot dispute?

Show where the error was raised and what ran before it. Connect the environment to Application Insights from the Business Central admin center if it is not already, and read the error telemetry for the failing posting: the error event carries the AL stack trace, which names the extension, object and method the error came from, and the chain of calls that led there. Record a snapshot debugging session of the same posting to see the variables and the order in which the subscribers actually ran in that session.

Then list who is listening. The Event Subscriptions page shows the active subscribers to each event, so you can see every app subscribed to OnBeforePostSalesDoc, OnAfterPostSalesDoc and the other Sales-Post events involved. The Event Recorder records which events are raised during an operation, which tells you where a custom check could attach. Put the stack trace, the snapshot, the subscriber list and the round-by-round table together, and each vendor receives the same facts.

Pattern foundWhat it looks likeWho usually fixes it
Two apps take over the same stepBoth subscribers set IsHandled to skip standard code, and whichever runs first winsBoth vendors agree which app owns the step; one stops overriding it
A subscriber commits mid-postingA Commit inside a posting event leaves half the entries written when a later subscriber failsThe vendor whose subscriber commits
One app changes the header another app has already readThe second app works on a stale copy and fails on modify, or posts old valuesThe app that modifies the record without passing it back by reference
An obsoleted event is still in useThe app compiled on the old version but not against the new oneThe publisher of that app, before the next major
A field or table clash between a per-tenant extension and a Marketplace appBoth define the same object or field, and the update cannot reconcile themWhoever maintains the per-tenant extension, following Microsoft guidance on PTE and Marketplace clashes

Who should own the per-tenant extensions when the old partner is gone?

You should. A Marketplace (AppSource) app belongs to its publisher, who maintains it, tests it against new versions and supports it under your agreement with them. A per-tenant extension was built for your company alone, and if nobody owns it, nobody fixes it before the next update. Ownership has three parts: the right to the code, the code itself, and a named party who maintains it.

Check the original contract for who holds the intellectual property in the per-tenant extensions. Then secure the source: the AL project, its app.json, and the history in a Git repository you control. If the source is missing, an app whose resourceExposurePolicy allows source download can be downloaded from Extension Management; an app without that permission exists only as a compiled file and has to be rebuilt or replaced, which is the route set out for Business Central with no source code. Finally, remove the old partner's delegated admin access and name the new maintainer in the admin center notifications.

Type of appWho maintains itWhat you should hold
Marketplace (AppSource) appThe ISV publisherA support agreement, a named contact, and their release notes before each major update
Per-tenant extension built for youWhoever you appoint: your team or a partnerThe source in your repository, the IP in writing, the build route, and a named maintainer
Per-tenant extension with no source availableNobody can change itAn inventory of what it does, so it can be rebuilt or replaced before it blocks an update
An ISV app installed as a per-tenant extensionThe ISV, if it still supports itConfirmation of the support position, or a plan to move to the Marketplace version or replace it

How should update testing work so the next release does not stop posting again?

Make the test routine part of the calendar rather than a reaction to an outage. Before every major update, create or update a sandbox on the preview version, install the current version of every extension, and run the posting regression set: the reference documents above, posted end to end, by an ordinary user. Automate what you can with AL test codeunits in the per-tenant extensions you own, and run them in a pipeline against each new version.

Give every app a row in a register: publisher, version, what it touches in posting, who maintains it, where its source is, and when it was last tested on a new version. When Microsoft reports a compatibility problem for a per-tenant extension, fix it in Visual Studio Code, test it on the new version in a sandbox, and upload it with the deployment schedule set to the next major, so the compatible version is the one used when production updates.

What does the isolation method look like step by step?

The same eight steps work whether the failure is on a sales invoice, a sales order or a credit memo, and whether the apps come from Marketplace or were built for you.

StepWhat to do
1. Freeze the evidence from productionRecord the exact error text, the document number, the user, the time and the environment version, and export the list of installed extensions with publisher and version from Extension Management.
2. Reproduce in a sandbox on the next versionCopy production to a sandbox, update it to the version that broke posting or to the next major in preview, and post the same document, using Preview Posting first so nothing is committed.
3. Map the dependency graphList which extensions depend on which, from the dependencies in each app, so that every uninstall round removes an app together with the apps that depend on it.
4. Uninstall extensions in halvesUninstall half of the third-party and per-tenant extensions without deleting their data, post again, and keep halving the group that contains the failure until one app, or one pair of apps, remains.
5. Capture the subscriber conflictWith telemetry connected to Application Insights, read the error event and its AL stack trace, record a snapshot debugging session of the failing posting, and list the subscribers to the posting events involved on the Event Subscriptions page.
6. Hand each vendor a reproducible caseSend each ISV the version, the steps, the stack trace and the name of the other app in the conflict, and agree who changes what, rather than asking each vendor whether their app is at fault.
7. Fix, deploy for the next major and retestInstall the corrected apps in the sandbox, rerun the posting scenarios, and upload a fixed per-tenant extension with the deployment schedule set to the next major so the compatible version is used when production updates.
8. Assign an owner and a test routine to every appRecord who maintains each Marketplace app and each per-tenant extension, where the source lives, and run the posting regression set on a preview sandbox before every major update.

When does it make sense to bring in one accountable party for the extensions?

When nobody can answer the question "who owns this app" for every extension installed, or when every update ends with vendors pointing at each other. The buyer needs one party that runs the isolation, holds the evidence, talks to every ISV and fixes the per-tenant extensions. For an independent view of where you stand, the Dynamics 365 health check and technical audit includes an AL code review of the extensions you own and ends in a findings report and a stabilisation plan, so this page does not restate it.

Solzet's own AL developers then do the work: reproduce and isolate the failure, fix or rebuild the per-tenant extensions, set up the repository and the regression tests, and coordinate the Marketplace publishers through each update. That delivery is described on Business Central AL development. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.

What do people ask us?

How do we find which extension breaks Business Central posting after an update?

Reproduce the failure in a sandbox copied from production and updated to the same version, then uninstall extensions in halves, following their dependencies, and post the same document after each round. Keep halving the group that contains the failure until one app or one pair of apps remains, and record every round as evidence.

Why do two ISV extensions conflict in Business Central posting?

Because both subscribe to the same posting events, and Business Central runs subscribers to an event in no particular order. Typical conflicts are two apps that each skip standard code with IsHandled, a subscriber that commits in the middle of posting, or one app changing a record another app has already read.

How do we prove which extension caused a posting error?

Connect the environment to Application Insights and read the error telemetry, which includes the AL stack trace naming the extension, object and method. Add a snapshot debugging session of the failing posting, the list of subscribers to the posting events from the Event Subscriptions page, and the table of uninstall rounds.

Can we test our extensions before a Business Central major update?

Yes. Sandboxes can be updated to the preview version of the next major, and Microsoft checks per-tenant extensions for compatibility with the next major and emails the notification recipients when it finds problems. Run your posting regression set on the preview sandbox and upload fixed per-tenant extensions with the deployment schedule set to the next major.

Who owns our per-tenant extensions if the partner who built them is gone?

Check the contract for who holds the intellectual property; in most cases the extension was built for you and should be yours. Secure the AL source and app.json in a repository you control, download source where the app allows it, remove the old partner's delegated admin access, and name a new maintainer for every app.

What if we have no source code for an extension that breaks posting?

An extension without source cannot be changed, only rebuilt or replaced. Inventory what it does from its behaviour, its objects and its data, then rebuild it as a new extension you own or replace it with standard functionality or a Marketplace app, and test the replacement on the next version before the update.

Should the ISVs or our own partner fix a conflict between two apps?

Whoever owns the app that has to change, but someone has to bring the evidence and run the conversation. A reproducible case with the stack trace and the name of the other app turns a dispute into a change request. One accountable party coordinating both vendors is usually faster than each vendor testing alone.

Which solution is right for your business?

Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.