---
id: change/bcapps/14331
type: change
title: "#14331 Fix trailing periods in generated document attachment folders"
summary: Document attachment external storage now removes trailing periods from generated table folder names, so uploads for tables like Purch. Cr. Memo Hdr. are no longer rejected by SharePoint. An empty result falls back to Table_<TableID>.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit da external storage impl.
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:45.824Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2cf14eb30762f293c1f6c9c9e8063ad9bd493207
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14331
    title: "microsoft/BCApps#14331: Fix trailing periods in generated document attachment folders"
    date: "2026-11-20"
    commit: 2cf14eb30762f293c1f6c9c9e8063ad9bd493207
    t: null
    quote: Normalize generated table folders by removing trailing periods after the existing reserved-character removal, space conversion and 100-character truncation.
links:
  learn: []
  objects:
    - object/codeunit/8751
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally
      title: Store Document Attachments in External File Storage
      label: possibly related
      why: External file storage for attachments including folder path handling and configuration.
      by: model
number: 14331
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14331
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-20T10:38:45Z"
author: JesperSchulz
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "AL: System Application"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 194
  deletions: 1
  al: 1
apps:
  - External Storage - Document Attachments
objects_touched:
  - key: codeunit/8751
    page: codeunit/8751
    type: codeunit
    id: 8751
    name: DA External Storage Impl.
    app: External Storage - Document Attachments
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 14392
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/14392
fixes_issues:
  - 12012
work_items:
  - 659957
systems:
  - platform
quote: Normalize generated table folders by removing trailing periods after the existing reserved-character removal, space conversion and 100-character truncation.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14331 Fix trailing periods in generated document attachment folders

> Document attachment external storage now removes trailing periods from generated table folder names, so uploads for tables like Purch. Cr. Memo Hdr. are no longer rejected by SharePoint. An empty result falls back to Table_<TableID>.

[Pull request](https://github.com/microsoft/BCApps/pull/14331) · merged into `main` (BC30) on 2026-11-20 by JesperSchulz · 5 files (+194 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Removes trailing periods from generated table folder names after reserved-character removal and truncation
- Falls back to Table_<TableID> format when normalization results in an empty name
- Applies normalization consistently across directory lookup, creation, and upload operations
- Extends connector mock to capture directory paths for regression testing
- Only affects newly generated folder names; existing folders and historical files remain unchanged
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8751 "DA External Storage Impl."](../../objects/codeunit/8751.md), External Storage - Document Attachments: modified

## Also merged into

- [#14392](https://github.com/microsoft/BCApps/pull/14392) into `releases/29.x` on 2026-11-23

## Context

- Fixes: [#12012 [Bug]: External Storage - Document Attachments fails on Purch. Cr. Memo Hdr. due to trailing dot in generated SharePoint folder name](https://github.com/microsoft/BCApps/issues/12012) (closed)
- Work items: AB#659957
- Labels: AL: Apps (W1), AL: System Application, Team: Integrations
- Systems: platform
- From the description: "Normalize generated table folders by removing trailing periods after the existing reserved-character removal, space conversion and 100-character truncation."

## 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](https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally) — possibly related: External file storage for attachments including folder path handling and configuration. (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).
