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

Serialized xml is nested too deeply - TestToolkit

Aperta
#8,353 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
powershell
Ambito
tooling

Direzione di ricerca

Start by reproducing the reported error with the supplied PowerShell script and -includeTestToolkit, then compare it with the Import-TestToolkitToBcContainer command mentioned in the report. The issue does not identify repository files or tests, so locate the relevant TestToolkit import/container entry points before tracing the XML serialization failure. Done means the container can be created with the Test Toolkit without the nested-XML error.

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

Descrizione

1. Describe the bug

I am getting the "Serialized xml is nested too deeply" error message when I create a docker container using a PowerShell script. The script includes the -includeTestToolkit flag.

2. To Reproduce
Steps to reproduce the behavior:

  1. Execute the following script

/*********************** Script begins ************************/

install-module BcContainerHelper -force

$accept_eula = $true
$containername = 'bc29'
$licenseFile = ''
$auth = 'Windows'
$usessl = $false
$updateHosts = $true
$assignPremiumPlan = $true
$shortcuts = 'Desktop'
$bcVersion = '29.0.0.0'

$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'CA' -version $bcVersion -select 'Closest' -accept_insiderEula -storageAccount bcinsider

if ($auth -eq 'Windows') {
$credential = get-credential -UserName $env:USERNAME -Message 'Using Windows Authentication. Please enter your Windows credentials.'
}
elseif ($auth -eq 'UserPassword') {
$credential = get-credential -Message 'Using Username/Password Authentication. Please enter credentials.'
}
else {
throw '$auth needs to be either Windows or UserPassword'
}

if (!$accept_eula) {
throw 'You have to accept the eula in order to create a Container.'
}
if (!($containername)) {
throw 'You have to specify a container name in order to create a container.'
}
if (!($artifactUrl)) {
throw 'No matching build was found for your version of Business Central'
}
New-BcContainer -accept_eula:$accept_eula -accept_insiderEula
-containername $containername -artifactUrl $artifactUrl
-auth $auth -Credential $credential
-usessl:$usessl -updateHosts:$updateHosts
-licenseFile $licenseFile -assignPremiumPlan:$assignPremiumPlan
-shortcuts $shortcuts `
-includeTestToolkit

if ($licenseFile) {
Setup-BcContainerTestUsers -containerName $containername -password $credential.Password
}

/*********************** Script ends ************************/

3. Expected behavior
The docker container should be created without any errors and include all the Tests extensions.

4. Actual behavior
Le XML sérialisé est imbriqué trop profondément. Line 1, position 3605. (Serialized xml is nested too deeply. Line 1, position 3605.)
Image

NOTE: I also tried to the following command:

Import-TestToolkitToBcContainer -containerName bc29 -includeTestRunnerOnly and got the following result:

Image

5. Versions:

  • AL Language: 18
  • Visual Studio Code: N/A
  • Business Central: 29.0.52454.0
  • List of Visual Studio Code extensions that you have installed: None
  • Operating System:
    • Windows
    • Linux
    • MacOS
Lingua principale
PowerShell
Stelle
884
Fork
285
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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/AL

Tutte le issue di microsoft/AL

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.