Sub topic 17
Known limits and unsupported metadata
This chapter assumes you have followed a work item from creation to promotion. It also assumes you know what source tracking is and how a package.xml manifest lists metadata types.
Why limits exist
DevOps Center detects changes in a development sandbox through source tracking. It then converts those changes to source files and commits them to a branch. A change can only travel through the pipeline if both steps work for its metadata type.
The result is that some changes never show up in the Pull Changes list. Other changes show up but cannot be deployed cleanly.
Metadata coverage
Salesforce publishes a Metadata Coverage Report. It shows, for each metadata type, whether the Metadata API supports it and whether source tracking supports it. Check this report before you plan a release that touches unusual types.
Three cases come up most often:
| Case | What you see | What to do |
|---|---|---|
| Type is not tracked | The change never appears in Pull Changes | Add it by hand to the work item branch, or deploy it outside DevOps Center |
| Type is tracked but not deployable in a stage | Promotion fails with a deployment error | Read the error, then fix the source or deploy that part with the CLI |
| Setting is data, not metadata | Nothing to pull | Load the data separately, for example with a script or a data tool |
Configuration that lives in records, such as some settings and reference data, is not metadata. A pipeline cannot carry it.
Working around an unsupported type
When a type is not tracked, follow this order:
- Retrieve the component with the Salesforce CLI.
- Commit it to the work item branch with Git.
- Open the pull request as usual, so the change is still reviewed.
- Promote the work item. The stage deploys what is in the branch.
sf project retrieve start --metadata Layout:Account-Account%20Layout --target-org dev1
git add force-app
git commit -m "Add Account layout for WI-0042"
git push origin WI-0042Replace the component name and branch with your own. The commit message names the work item so the change can be traced later.
Keep local tooling files out of the branch. A .forceignore file does this:
# .forceignore
**/jsconfig.json
**/.eslintrc.json
**/__tests__/**
.sfdx
.sfOther limits to plan for
- Each stage needs its own connected org, and the pipeline follows the stage order you defined. You cannot skip a stage in a single promotion.
- A work item branch carries its own changes only. If two work items edit the same file, you must resolve that in Git, as covered in the conflicts chapter.
- Supported Git providers and sandbox types change between releases. Confirm them in the current release notes before you set up a new project.
Exercise
A teammate changed a metadata type in the dev sandbox, but it does not appear in Pull Changes. Name two checks you would make, and one way to get the change into the pipeline.
Show answer
First, look up the type in the Metadata Coverage Report to see whether source tracking supports it. Second, confirm the change is metadata and not record data. To get the change into the pipeline, retrieve the component with sf project retrieve start, commit it to the work item branch, and open the pull request as usual.