#12429 Skip enabling incomplete existing retention policies on install/upgrade
Skip enabling incomplete retention policies during install and upgrade when the existing setup would fail validation, preventing tenant upgrades from blocking on Dataverse Entity Change records with missing retention periods.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-10-08 by darjoo · 2 files (+95 -2), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Guard skips enabling retention policy when record is already enabled, applies to all records without a retention period, or uses filters with no enabled lines
- Preserves customer’s existing incomplete setup instead of blocking upgrade with validation error
- Added read permission on Retention Policy Setup Line to codeunit 3999
- Changed EnableRetentionPolicySetup from local to internal visibility for testing
- Covers Dataverse Entity Change, Integration Synch. Job and Integration Synch. Job Errors tables
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 3999 “Reten. Pol. Install - BaseApp”, Base Application: modified
Context
- Work items: AB#653144
- Labels: Team: Integrations
- Systems: administration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Clean up data with retention policies — possibly related: Documents retention policy setup and enabling behavior during installation and upgrades. (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).