Sub topic 17
Known limits and unsupported metadata
This chapter assumes you have followed the earlier chapters. You should know what a project, pipeline, stage, environment and work item are. You should also know how a work item branch reaches production, and you should be able to read a basic sfdx-project.json. The aim here is to know where DevOps Center stops being the right tool, so you can plan around the gaps before they surprise you in a release.
Why limits exist
DevOps Center sits on top of three other systems: source tracking in sandboxes, a Git provider, and the Metadata API. A change can only travel through the pipeline if all three can handle it. Most of the limits you will meet come from one of those layers, not from DevOps Center itself.
| Layer | What it constrains | Typical symptom |
|---|---|---|
| Source tracking | Which metadata types appear as trackable changes | A change you made in the sandbox never shows up in the work item |
| Git provider | Which providers and repository layouts work | The connection or branch setup fails |
| Metadata API | What can be retrieved and deployed, and how much per deployment | A promotion fails on a type or on size |
| Pipeline model | How stages and projects are structured | You cannot express the release flow you want |
Metadata coverage
DevOps Center only picks up changes to metadata types that source tracking supports. If you edit a type that source tracking does not cover, the sandbox accepts the change, but DevOps Center cannot list it as a pending change. The change is never committed, so it never reaches the next stage.
The authority on coverage is the Metadata Coverage Report published by Salesforce. Coverage changes with each release, so do not rely on a list you memorized. Check the report for your API version, and check the DevOps Center release notes for known issues.
Three situations are common:
- Type not supported by source tracking. You must handle the change outside the work item flow, for example with the Salesforce CLI or a manual step.
- Type supported but configured by data. Records such as price book entries or custom metadata records are data or data-like content. Metadata deployment does not move ordinary data.
- Org-specific configuration. Some settings are different in each org on purpose, such as named credential endpoints or integration users. These need per-environment handling, not a single committed value.
Keep a manual-steps register
Every team needs a written list of changes that DevOps Center cannot carry. Attach the relevant item to the work item description so reviewers see it before they approve.
Work item: WI-0042 Add renewal quote screen
Manual steps (run after promotion to each stage):
1. Assign permission set Renewal_Quote_User to the Sales Ops group
2. Update the named credential endpoint in UAT and Production
3. Load picklist-driven records using the data load runbookKeeping unwanted files out
A repository often contains files that are not deployable metadata. A .forceignore file keeps them out of deployments and retrievals, so only real metadata moves through the pipeline.
# .forceignore
**/jsconfig.json
**/.eslintrc.json
**/__tests__/**
.sfdx
.sfThe source directory must also be declared in sfdx-project.json. DevOps Center expects a Salesforce DX project layout in the repository.
{
"packageDirectories": [
{ "path": "force-app", "default": true }
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "62.0"
}A common error is metadata sitting outside every packageDirectories path. Salesforce CLI and DevOps Center will not deploy it, and nothing warns you that it is missing.
Environment and pipeline constraints
Some limits are about how the tool models a release. Confirm the current details in the documentation for your org's release, because these have changed over time.
- Development environments are sandboxes. You cannot use a scratch org as a work item environment, and production is never a place to make tracked changes.
- A pipeline is a linear sequence of stages. Each stage maps to one branch and one org. A branching flow, for example one path for hotfixes and another for features, needs separate handling.
- Each project has one pipeline and one repository. A change that spans several repositories needs coordination outside the tool.
- Git provider support is limited to the providers listed in the documentation. If your company uses another provider, check support before you plan the rollout.
- Work item changes must be pulled and committed in order. The tool does not let you cherry-pick one file out of a bundle of changes and ignore the rest, so keep work items small.
Size and test limits come from the platform
A promotion is a Metadata API deployment, so API limits apply. A very large work item can exceed the limits on files or package size per deployment. Production deployments that include Apex also require passing tests with the required code coverage. A failed test blocks the promotion, and the pipeline shows the failure instead of retrying.
You can check a stage before promoting by running a validation-only deployment with the CLI:
sf org login web --alias uat
sf project deploy start --source-dir force-app --target-org uat --dry-run --test-level RunLocalTestsThe --dry-run flag validates without saving anything in the target org. This lets you find size or test problems before they block a pipeline run.
Deciding how to handle a change
Use this decision flow when you plan a work item.
Spotting drift
When people make unrecorded changes in higher orgs, the org and the repository stop matching. This is called drift. DevOps Center does not guarantee that a stage org equals its branch. To see what sits on the UAT branch but has not reached main, compare the two branches:
git fetch origin
git log --oneline origin/main..origin/UATEach line is a commit that a promotion would carry forward. If the list is longer than you expect, work items are waiting in UAT. Review them before you promote anything else.
Common errors and what they mean
- "My change does not appear in the work item." The type is probably not covered by source tracking, or the change is outside your package directories. Check the coverage report and
sfdx-project.json. - A promotion fails on a type that worked in the sandbox. The target org may lack a feature, license or setting that the metadata needs. Enable it first, then retry.
- A deployment fails on size. Split the work into smaller work items.
- Tests fail only in production. Production runs tests against production data and configuration. Reproduce the failure with a validation run before you retry.
Exercise
A developer changes a custom object field and a setting that source tracking does not support, all in one sandbox. Only the field appears as a pending change in the work item. What should the team do about the setting, and why not just commit the field and move on?
Show answer
Record the setting as a manual step in the work item description, or deploy it with the Salesforce CLI, and run it in each later stage after promotion. Committing only the field would leave the stages with the field but without the setting. The feature could then behave differently in UAT and production than it did in the sandbox, and the Git history would give no hint of the missing piece.
Exercise
Which command lists the commits that are on the UAT branch but not yet on main, and what does the output tell you before a promotion?
Show answer
git log --oneline origin/main..origin/UAT, after git fetch origin. Each line is a commit that a promotion would carry. If the list contains work items you did not expect, review them before promoting.