MSBA-353 · Lesson 10 of 12 · 19 min

Technical validation

▶ Video coming soon A video version of this lesson is on the way.

Before a Marketplace app reaches any customer, Microsoft's validation service checks it automatically. Quarrystone's first attempt to submit Freshness Window, on November 13, 2026, failed in under ten minutes, and the second, on November 20, passed. The difference was not the code, which had barely changed, but a mismatch between the app's manifest and its Partner Center offer, and a decision about which Business Central versions the app supports. This lesson walks through what technical validation checks, how to run the same checks before submitting, and how to read a failure. The MB-820 outline names the skill directly: validate an app for Microsoft Marketplace submission.

Two kinds of validation

A Marketplace submission is reviewed twice. Technical validation is automated: Microsoft's service inspects the app package, compiles it against Business Central, runs the AppSourceCop analyzer, and checks that it installs and upgrades. Marketing validation, part of certification, is reviewed against Microsoft's marketing checklist: the offer's descriptions, screenshots or videos, support and privacy links, documentation, and that the listing matches what the app does. Technical validation comes first; an app that fails it never reaches certification.

A pipeline of stages from left to right: Submit in Partner Center, Automated application validation, Certification, Preview creation, Publish. Under automated application validation, a list: manifest and signature checks, dependency resolution, compile per country and version, AppSourceCop against the baseline, runtime version check. A failure arrow from each stage leads to Fix and resubmit with a new version. Under Preview creation, a note says a preview audience can test with a hidden key before the listing goes live.
Stages of a Marketplace submission and where technical validation fits.

The technical validation checklist

Microsoft publishes a technical validation checklist on Learn. An app fails if any mandatory item is missing. The items group naturally into the manifest, registrations, code rules, upgrade and localization, security and testing.

Main items of the technical validation checklist.
AreaRequirement
ManifestMandatory app.json properties present; name, publisher and version match the offer; the application property sets the minimum version
PackageA real app package, not a runtime package, digitally signed; a unique app ID not shared with a PTE
RegistrationsRegistered affixes used on objects and fields; a registered object ID range used
Code rulesAppSourceCop passes; no use of the company-open events OnBeforeCompanyOpen and OnAfterCompanyOpen; profiles as Profile objects; date literals in the standard format
DataEvery field has a DataClassification other than ToBeClassified
User interfaceApplication areas set on controls; actions placed with addfirst or addlast; web services that do not raise UI
UpgradeUpgrade code so the app upgrades from version to version
LocalizationTranslation files for the languages offered
SecurityOwn permission sets; users do not need SUPER for setup or use
TestingPublish, sync, install, uninstall and reinstall tested; automated tests with the Test Toolkit strongly recommended
TelemetryAn Application Insights connection string in app.json recommended

Most of these are enforced earlier if the team follows lessons 5 to 9: AppSourceCop in every build catches naming, classification, obsolete and breaking-change problems; the test app proves install and upgrade; the pipeline signs the package. What the analyzer cannot check is whether the manifest matches the offer and whether the affixes are really registered, which is why those are the classic first-submission failures.

What the service does

After the manifest and signature checks, the service works through each country and each Business Central release the app must support. For each combination, it skips extensions already validated at the same version, resolves dependencies, compiles the app against them, runs AppSourceCop against the baseline, which is the latest version of the app already in the marketplace for that country, and checks that the app's runtime version is supported by that release. If a higher version of the app is already published, the new version is also checked against it.

Two settings decide the scope. The countries are the markets selected for the offer in Partner Center, as long as Business Central is available there. The releases run from the minimum release computed from the app's application property up to the current production release; for example, an application property of 27.0.0.0 with production at 29.1 means validation against every release from 27.0 to 29.1. The minimum also decides when customers can see the app: it becomes available from that version onward. Thirty days before a new major version, submissions are also validated against the upcoming release. Partner Center used to have a target release setting with choices such as current, next minor and next major; Microsoft now ignores it and has said it will be removed.

How the minimum version shapes validation and availability.
Application propertyProduction releaseReleases validatedEffect
26.0.0.029.126.0 to 29.1Wider audience, more compile targets, cannot use newer AL features
27.0.0.029.127.0 to 29.1Quarrystone's choice: still broad, and allows the APIs the code uses
29.0.0.029.129.0 to 29.1Fewest targets, but customers on older versions cannot install it

Baselines and breaking changes

The first version of an app has no baseline, so breaking-change checks pass trivially. Every later version is compared with what is already published. AppSourceCop rejects removing or renaming public procedures, events, tables and fields, changing their signatures or types, and other changes that would break a customer's data or another partner's dependent app, unless the obsolete process has been followed. Microsoft's rule is explicit: once an app is published, you cannot make breaking changes without first obsoleting the objects, and you cannot make schema-breaking changes to tables or table extensions, even if no customer uses the app yet. That is why lesson 9 insisted on a small public surface before the first submission: the first version sets the contract.

To check breaking changes locally, the build needs the previous version of the app as a baseline. AppSourceCop reads it from a configuration file in the app folder that names the previous version, or the build tools fetch it; AL-Go's AppSource template handles this by using the latest release. Before the first submission there is no previous version, so Quarrystone's pipeline compared only against Microsoft's rules.

Self-validation before submitting

Microsoft recommends running the same validation before every submission, and automating it. The traditional tool is the Run-AlValidation command in the BcContainerHelper PowerShell module. It creates containers for the chosen versions and countries, installs any dependencies, installs the previous version if supplied, installs or upgrades to the new version, and runs AppSourceCop. An empty result means no errors; publish, install or upgrade failures appear as exceptions. A related command runs AppSourceCop on its own against a running container. The machine needs Docker and the latest module. Two caveats come from Microsoft's documentation: Run-AlValidation cannot verify that affixes are registered, so that must be checked separately; and AL-Go for GitHub is the recommended way to automate the checks, with Microsoft phasing out BcContainerHelper in AL-Go by October 1, 2027.

Self-validating the first version of Freshness Window for two countries. Previous apps are empty because nothing is published yet.
$validationResults = Run-AlValidation `
    -validateCurrent `
    -installApps @() `
    -previousApps @() `
    -apps @( ".\output\Quarrystone Business Systems_Quarrystone Freshness Window_1.0.4.0.app" ) `
    -countries @( "ca", "us" ) `
    -affixes @( "QFW" ) `
    -supportedCountries @( "ca", "us" )
$validationResults | Write-Host -ForegroundColor Red

The first two submissions

Quarrystone's self-validation in early November found two problems. Two fields in the freshness setup table still had DataClassification set to ToBeClassified, which AppSourceCop reports as an error. And with the application property at 26.0.0.0, the app failed to compile against version 26, because the code used a method introduced in a later version. Noor fixed the classification, and the team discussed the minimum version: lowering the code to version 26 features would have cost time for a handful of possible customers, so they raised the application property to 27.0.0.0. Self-validation then passed for both countries and every release from 27.0 to the current one.

The first submission on November 13 still failed, in the manifest stage. The app.json name was "Quarrystone Freshness Window" while the Partner Center offer had been created as "Freshness Window by Quarrystone". The checklist requires that name, publisher and version match the offer description, and the service checks exactly that. Self-validation could not catch it, because it never sees the offer. Quarrystone renamed the offer to match the app, increased the version to 1.0.5.0 because a version already submitted cannot be reused, and resubmitted on November 20. Technical validation passed in about twenty minutes, and the submission moved on to certification, where it stood on November 23.

Worked problem

Reading a validation failure

A later submission of an update fails with an error code in the AVS0101 family about a dependency that cannot be resolved, and the message ends with "...(Truncated)". What should the team do?

Show solution
  1. Recognize the category: missing dependency errors such as AVS0005 and AVS0101 mean the service could not find an app the submission depends on, in a version that satisfies the manifest.
  2. Check app.json: the dependency version may be higher than the version published in the marketplace for one of the countries.
  3. Because the message is truncated, read the full details in the Application Insights resource named in the main app's app.json, where validation results are logged, or run self-validation for the same countries and versions.
  4. Fix the dependency version or include the newer dependency in the submission, raise the app version, and resubmit.

Answer: Treat AVS0005 and AVS0101 as dependency problems, get the full message from validation telemetry or self-validation, fix the manifest, and resubmit with a new version.

Reading results and timing

Microsoft expects most submissions to finish validation within minutes, and all within three hours; very large apps with thousands of AL files take longer, and Microsoft suggests splitting them into modules. When automated validation fails, the documentation lists common causes: missing dependencies, a version that was already uploaded (AVS0107), manifest and offer mismatches, unsigned packages, app ID conflicts with per-tenant extensions and malware detection. If the app's app.json contains an Application Insights connection string, detailed validation results are written there as telemetry, and Microsoft publishes a troubleshooting notebook and a guide for querying them. Teams can even set alerts on validation signals. If a later stage fails, such as publishing, the guidance is to retry with a new submission and then open a support case in Partner Center.

Preview before going live

After validation and certification, Partner Center creates a preview of the offer. The publisher, and any customers added to the preview audience, can install the app using a special URL that includes the tenant, the app ID and a preview key hidden in Partner Center. Quarrystone planned to use this for its three pilot customers before making the listing public, so that Corbel & Finch, the tea blender and the bakery supplier could try the product in sandboxes. A final "go live" step then publishes the listing to everyone in the chosen markets.

Marketing validation in brief

Technical validation is about the package; certification also checks the listing. Microsoft publishes a marketing validation checklist alongside the technical one. Among its themes: the offer name and description must describe what the app actually does, without claims the app cannot support; the listing needs screenshots or a video of the real app; documentation, a support contact and privacy and terms links must work; and the app's in-product experience should help a new customer get started, for example with an assisted setup. Quarrystone wrote the listing after the app was finished, using the setup page and the freshness warning as screenshots, and asked Callum to read the description as a customer would. His question, "how do I know it is working?", led to a short section in the help on the freshness API and the setup page's test action.

Building validation into the pipeline

Running validation once before submitting is good; running it on every change is better. AL-Go's AppSource template runs AppSourceCop with the mandatory affixes on every build and compares against the previous release once one exists. Quarrystone added a scheduled self-validation job for both countries and the full version range, so that a change in an upcoming Business Central version, or a mistake in a pull request, shows up as a failed check days before anyone tries to submit. The time spent on the job each week is small compared with a failed submission and a lost day of certification.

Where Quarrystone runs each validation check.
CheckWhere it runsHow often
AppSourceCop with mandatory affixesPull request build and CI/CDEvery change
Tests in a containerPull request build and CI/CDEvery change
Breaking changes against last releaseCI/CD once a release existsEvery change
Self-validation for ca and us, all versionsScheduled workflowWeekly and before submission
Manifest matches offerManual check in Partner CenterBefore each submission

Common mistakes

  • MistakeSubmitting without running self-validation.

    InsteadRun the same checks for all countries and versions first, ideally in the pipeline.

  • MistakeLetting the offer name drift from app.json.

    InsteadKeep name, publisher and version identical between the manifest and the offer.

  • MistakeResubmitting the same version after a failure.

    InsteadIncrease the version; a version already uploaded is rejected.

  • MistakeSetting the application property lower than the code supports.

    InsteadChoose the lowest version you can compile and test against, because every release from it up is validated.

  • MistakeAssuming self-validation proves affixes are registered.

    InsteadCheck affix registration separately; the tool cannot verify it.

Summary and key terms

  • Technical validation is automated; marketing validation is part of certification.
  • The checklist covers manifest, signing, registrations, AppSourceCop, data classification, UI rules, upgrade code, translations, permissions and testing.
  • The service validates each selected country and every release from the app's minimum version to the current production release.
  • After the first version, AppSourceCop compares each submission with the published baseline and rejects breaking changes.
  • Run-AlValidation and AL-Go reproduce the checks before submitting, except offer matching and affix registration.
  • Failures are read from error codes and validation telemetry; each resubmission needs a new version.
Technical validation
Microsoft's automated checks of a Marketplace app package before certification.
Marketing validation
Review of the offer listing, documents and links during certification.
Baseline
The latest published version of an app, used to detect breaking changes.
Application property
The app.json setting that defines the minimum Business Central version the app supports.
Self-validation
Running Microsoft's validation checks locally before submitting.
Preview audience
Tenants allowed to install an offer before it goes live.
AppSourceCop
The analyzer that enforces Marketplace rules and breaking-change checks.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why did the November 13 submission fail even though self-validation passed?

    Show answer

    The app name in app.json did not match the offer in Partner Center, which self-validation cannot see.

  2. With an application property of 27.0.0.0 and production at 29.1, which releases are validated?

    Show answer

    Every release from 27.0 up to 29.1.

  3. Where can the full text of a truncated validation error be found?

    Show answer

    In the Application Insights resource named in the main app's app.json, or by running self-validation.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz