code change · fixAdministration & Setupofficial - Microsoftreviewed - checked by Opus

#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.

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

Context

  • Work items: AB#653144
  • Labels: Team: Integrations
  • Systems: administration

No source states these links: they share an object, a model read them, or a person found the same subject.

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).