[Bug]: Avalara connector uses an unsupported Accept media type for document downloads
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
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- backend
Direzione di ricerca
Inizia da src/Apps/W1/EDocumentConnectors/Avalara/App/src/Connection/Requests.Codeunit.al, nel codeunit 6376 Requests e nella procedura CreateDownloadRequest. Verifica come viene selezionato l’header Accept di UBL e se il tipo di media proposto si applica a tutti i mandati e gli ambienti Avalara supportati. Il lavoro è completato quando il documento interessato viene scaricato correttamente con il tipo di media supportato e l’elaborazione XML esistente rimane compatibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the issue
The Avalara E-Document connector hardcodes the following HTTP header
in codeunit 6376 Requests, procedure CreateDownloadRequest(Id: Text):
line 195: Accept: application/vnd.oasis.ubl+xml
This media type is no longer accepted for the documents tested in our
Avalara environment, preventing downloads using this request.
When testing the same request in Postman, the following Accept values
are accepted:
**- application/vnd.oasis.ubl.flow2+xml
- application/vnd.oasis.sbdh.flow2+xml**
The XML structure seems to appear unchange for the UBL representation with application/vnd.oasis.ubl.flow2+xml;
the issue appears to concern the accepted media type rather than
a change to the document structure.
We have observed this behavior since approximately July 2026.
Actual response with application/vnd.oasis.ubl+xml:
{
"error": 404,
"message": "The requested media type has not been generated yet or is unavailable."
}
While with application/vnd.oasis.ubl.flow2+xml we obtain a code 200 with the UBL.
Expected behavior
The connector should use an Accept media type supported by Avalara
so that documents can be downloaded successfully.
For the affected scenario, updating the UBL Accept header to
application/vnd.oasis.ubl.flow2+xml appears sufficient, without
changing the existing XML processing.
Steps to reproduce
-
Identify a document available for download in the affected
Avalara environment. -
Send the following request in Postman with valid authentication:
GET {baseUrl}/einvoicing/documents/{documentId}/$download
avalara-version: 1.6
Accept: application/vnd.oasis.ubl+xml -
Observe that the request fails:
{
"error": 404,
"message": "The requested media type has not been generated yet or is unavailable."
} -
Repeat the same request for the same document, changing only
the Accept header to:application/vnd.oasis.ubl.flow2+xml
-
Observe that the document is successfully downloaded.
Additional context
Environment:
- Business Central version/build: FR Business Central 29.0 (Platform 29.0.57751.0 + Application 29.0.54011.57536)
- E-Document Connector - Avalara app version: 29.0.54011.55407
- Avalara environment: sandbox
- Tested on the latest bcinsider build: not tested
Proposed fix:
Update the hardcoded UBL Accept media type to application/vnd.oasis.ubl.flow2+xml for the affected scenario, subject to confirmation of its applicability across supported Avalara mandates and environments.
I am willing to contribute a fix once the proposed approach has been reviewed and approved.
I will provide a fix for a bug
- I will provide a fix for a bug
- Lingua principale
- AL
- Stelle
- 730
- Fork
- 514
- Merge medio
- 2g 23h
- PR unite (30g)
- 601
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/BCApps
-
[Bug]: Cannot add sales line item to sales order, on an on-prem installation with basic licenseApertaTeam: SCM
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/BCApps#14569 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
BCIdea Team: Finance
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/BCApps#14478 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Approved Team: Finance
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
microsoft/BCApps#14443 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Contribution Process Bug]: Incorrect Spanish translation for Billing Line Document Type enum value "Invoice"Forse già presa @JesperSchulz l’ha presa 2 giorni fa. ApertaApproved Ownership: Needs Review Team: Other
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
microsoft/BCApps#14391 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Approved Team: Integrations
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/BCApps#14386 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/BCApps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
micronaut-projects/micronaut-core#14585 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
langgenius/graphon#443 ·
I maintainer di solito rispondono entro 2 giorni
-
bug new
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
docling-project/docling-serve#788 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
HaxeFoundation/haxe#13246 ·
I maintainer di solito rispondono entro 1 giorno