A layout added in a report extension is not used until it is selected
A reportextension can add layouts through its rendering section, but deploying the extension does not make any of them the report's layout. DefaultRenderingLayout can be set only on the report object, not on a report extension, so the base report keeps its own default.
- microsoftlayer
- reportingdomain
- 2examples
- 1pull request
Rule on GitHub · microsoft layer · reporting · BC 20.. · tier official · derived
Description
A reportextension can add layouts through its rendering section, but deploying the extension does not make any of them the report’s layout. DefaultRenderingLayout can be set only on the report object, not on a report extension, so the base report keeps its own default. The new layout appears on the Report Layouts page and in the request page’s Report Layout field, and is used only when a user or administrator picks it, or sets it as the default for the company in Report Layouts or Report Layout Selection.
Agents that add columns to a report extension together with a new layout often assume the new layout replaces the base one, and describe the change as complete. Users keep printing the old layout without the new fields.
Best Practice
When a report extension ships a layout meant to be used by default, treat selecting it as a deployment or setup step: document it, or provide an explicit, opt-in setup action that sets the layout as the company default through the application’s report layout selection. Give the layout a Caption and Summary so users can find it. If the extension’s new dataset columns are only useful in the new layout, say so in the release notes.
See sample: reportextension-layouts-are-not-selected-automatically.good.al.
Anti Pattern
A reportextension whose rendering layout is expected to replace the base layout automatically, for example a change described as “the report now shows X” when X appears only in the extension’s layout, with no selection step. DefaultRenderingLayout placed in a report extension is a compile error, not a working override.
Do not flag report extensions that add layouts as optional alternatives, or that add dataset columns only for user-defined layouts.
See sample: reportextension-layouts-are-not-selected-automatically.bad.al.
References
Defining multiple report layouts (DefaultRenderingLayout can’t be set on report extension objects), Report design overview (a report extension layout isn’t used automatically when deployed), and Set the layout used by a report.
Examples
- Good: reportextension-layouts-are-not-selected-automatically.good.al
- Bad: reportextension-layouts-are-not-selected-automatically.bad.al
Changed by
From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).