Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Serialized xml is nested too deeply - TestToolkit

Abierto
#8,353 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
powershell
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
PowerShell
Estrellas
889
Forks
285
Merge medio
4 h 7 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/AL

Todos los issues de microsoft/AL

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.