---
id: change/bcapps/13692
type: change
title: "#13692 Fix SharePoint REST upload 404 caused by trailing slash in parent folder"
summary: The SharePoint REST connector now correctly handles trailing slashes in folder paths, fixing 404 errors that prevented uploads and file operations through the legacy REST API.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit ext. sharepoint rest helper
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-11-07T01:03:50.711Z"
  flags: []
generated:
  at: "2026-11-11T00:15:47.902Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7ef28b007af89cb793ca7ef957256765ce6192d6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13692
    title: "microsoft/BCApps#13692: Fix SharePoint REST upload 404 caused by trailing slash in parent folder"
    date: "2026-11-05"
    commit: 7ef28b007af89cb793ca7ef957256765ce6192d6
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/4609
  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: Documents external file storage including SharePoint for document attachments.
      by: model
number: 13692
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13692
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-05T20:06:12Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 195
  deletions: 6
  al: 1
apps:
  - External File Storage - SharePoint Connector
objects_touched:
  - key: codeunit/4609
    page: codeunit/4609
    type: codeunit
    id: 4609
    name: Ext. SharePoint REST Helper
    app: External File Storage - SharePoint Connector
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13693
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13693
fixes_issues:
  - 13693
work_items:
  - 658004
systems:
  - platform
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13692 Fix SharePoint REST upload 404 caused by trailing slash in parent folder

> The SharePoint REST connector now correctly handles trailing slashes in folder paths, fixing 404 errors that prevented uploads and file operations through the legacy REST API.

[Pull request](https://github.com/microsoft/BCApps/pull/13692) · merged into `main` (BC30) on 2026-11-05 by darjoo · 2 files (+195 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Removed trailing separators from parent folder paths that caused API rejections
- Fixed SplitPath and GetParentPath logic to work with the newer GetFolderByServerRelativePath method
- Added path normalization in InitPath to handle directory paths from Storage Browser navigation
- Integrated fixes for doubled separators and root folder handling
- Resolves widespread upload failures affecting approximately 70k operations across 66 tenants
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 4609 "Ext. SharePoint REST Helper"](../../objects/codeunit/4609.md), External File Storage - SharePoint Connector: modified

## Also merged into

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

## Context

- Fixes: [#13693](https://github.com/microsoft/BCApps/issues/13693)
- Work items: AB#658004
- Labels: AL: Apps (W1), Team: Integrations
- Systems: platform

## 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: Documents external file storage including SharePoint for document attachments. (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).
