Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: External Storage - Document Attachments fails on Purch. Cr. Memo Hdr. due to trailing dot in generated SharePoint folder name

Aperta Adatta ai principianti
#12,012 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
backend, cloud

Direzione di ricerca

Inizia in codeunit 8751 "DA External Storage Impl.", nello specifico in GetTableNameFolder, e riproduci il caricamento degli allegati di Posted Purchase Credit Memo tramite il SharePoint connector. Il lavoro è completato quando i nomi delle cartelle generate rimuovono i caratteri finali non supportati, incluso il punto finale in "Purch. Cr. Memo Hdr.", prima della creazione delle cartelle.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Team: SCM
Describe the issue

We are testing the integration between:
 

  • External Storage - Document Attachments
  • External File Storage - SharePoint Connector
     
    When attempting to upload a document attachment from a Posted Purchase Credit Memo, the upload fails with the following error:
Image Image
Expected behavior

Before creating folders in SharePoint, the connector should sanitize folder names and remove invalid trailing characters "." (and other character not supported by sharepoint).

For Example "Purch. Cr. Memo Hdr." should became "Purch._Cr._Memo_Hdr"

Steps to reproduce
  1. Configure External File Storage - SharePoint Connector
  2. Configure a valid SharePoint site
  3. Enable external storage for Document Attachments
  4. Open "Posted Purchase Credit Memos" and upload an attachment
Additional context

Business Central 28.5 SaaS
External Storage - Document Attachments
External File Storage - SharePoint Connector
No legacy API

I will provide a fix for a bug
  • I will provide a fix for a bug
Suggested fix

codeunit 8751 "DA External Storage Impl." implements "File Scenario"

Current code:

 local procedure GetTableNameFolder(TableID: Integer): Text[100]
    var
        TableName: Text;
    begin
        // Try to get table name from metadata, fallback to table ID if not available
        if not TryGetTableName(TableID, TableName) then
            TableName := 'Table_' + Format(TableID);

        // Replace invalid characters for folder names
        TableName := DelChr(TableName, '=', '<>:"/\|?*');
        TableName := ConvertStr(TableName, ' ', '_');

        exit(CopyStr(TableName, 1, 100));
    end;

New code:

procedure GetTableNameFolder(TableID: Integer): Text[100]
 var
     TableName: Text;
 begin
     // Try to get table name from metadata, fallback to table ID if not available
     if not TryGetTableName(TableID, TableName) then
         TableName := 'Table_' + Format(TableID);

     // Replace invalid characters for folder names
     TableName := DelChr(TableName, '=', '<>:"/\|?*');
     TableName := ConvertStr(TableName, ' ', '_');
     **TableName := DelChr(TableName, '>', '. ');**

     exit(CopyStr(TableName, 1, 100));
 end;

Lingua principale
AL
Stelle
683
Fork
459
Merge medio
3g 44m
PR unite (30g)
563

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/BCApps

Tutte le issue di microsoft/BCApps

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.