#11733 Fix external storage migration for unsafe attachment filenames
Attachments with unsafe filenames now migrate to external storage because generated storage paths are sanitized while displayed names stay unchanged. Each sync step runs in isolation so one failure rolls back only that step, failures are registered per attachment, and the app no longer deletes remote files, only retiring local references under a guard.
- 15files
- 9AL files
- 9objects
Pull request · merged into main (BC30) on 2026-10-09 by darjoo · 15 files (+1544 -164), 9 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Generated storage filenames are sanitized; displayed File Name and File Extension are unchanged
- Each synchronization step runs through a worker; failures roll back that step and processing continues
- Failed attachments are registered locally; interactive runs show Error Messages, background runs do not fail the job queue entry
- Uploaded files are retained after failed persistence and their logical paths recorded for recovery
- All remote deletion calls are removed; local references are retired only under a guarded check
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8755 “DA Ext. Storage Sync Worker”, External Storage - Document Attachments: added
- Report 8752 “DA External Storage Sync”, External Storage - Document Attachments: modified
- Codeunit 8751 “DA External Storage Impl.”, External Storage - Document Attachments: modified
- Table extension 8750 “Document Attachment Ext.Stor.”, External Storage - Document Attachments: modified
- Page 8751 “Document Attachment - External”, External Storage - Document Attachments: modified
- Permission set 8751 “DA Ext. Stor. Admin”, External Storage - Document Attachments: modified
- Page 8750 “DA External Storage Setup”, External Storage - Document Attachments: modified
- Table 8750 “DA External Storage Setup”, External Storage - Document Attachments: modified
- Codeunit 8754 “DA Feature Telemetry”, External Storage - Document Attachments: modified
Context
- Work items: AB#647832
- Labels: AL: Apps (W1), AL: System Application, Team: Integrations
- Systems: platform
- From the description: “Sanitize generated storage/media-import filenames without changing displayed File Name or File Extension.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Store Document Attachments in External File Storage — possibly related: External file storage for document attachments configuration and migration management. (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).