Hi, Readers.
The public preview for Dynamics 365 Business Central 2026 release wave 2 (BC29) is available. Learn more: Link.
I will continue to test and share some new features that I hope will be helpful. In this post, I would like to talk about Use cross-platform report layout paths (forward slashes or backslashes).
Use cross-platform report layout paths:
Use either forward slashes or backslashes in report layout and analysis-view paths so the same AL source compiles consistently on Windows and Linux systems.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/whatsnew/whatsnew-update-29-0?wt.mc_id=DX-MVP-5004336

AL report layout and analysis view file path properties (
RDLCLayout,WordLayout,ExcelLayout,LayoutFile, andDefinitionFile) now accept both/and\directory separators on all operating systems, so the same AL source compiles identically on Windows and Linux. AL0363 (“The directory separator used in this property value is not compatible with the current operating system.”) is no longer reported; the diagnostic ID is reserved for backwards-compatible suppression syntax.

In Windows the backslash ‘\‘character is used as a separator, whereas in Linux we use the forward slash ‘/’ (as we do when quoting URLs).
Previously, the directory separator had to match the operating system. For example, Windows typically uses \, while Linux uses /. Using an incompatible separator could result in the AL0363 diagnostic.
With this change, the same AL source code can be compiled consistently on both Windows and Linux without changing the file paths.
For example, both of the following are now valid:
RDLCLayout = 'Layouts\SalesInvoice.rdlc';RDLCLayout = 'Layouts/SalesInvoice.rdlc';
The same applies to the ‘DefinitionFile’ property in Analysis View. More details: Business Central 2026 release wave 1 (BC28): Support for packaging analysis views in extensions (Create analysis views via AL)

This is particularly useful for projects that use different development and build environments, such as developing on Windows and compiling AL projects on Linux-based CI/CD build agents.
Small update, but it makes life easier. Give it a try!!!😁
END
Hope this will help.
Thanks for reading.
ZHU




コメント