BCContainerhelper version
6.1.13
Describe the issue
Since latest changes in bccontainerhelper 6.1.13 the cmdlet Export-NavContainerDatabasesAsBacpac starts to fail. Already noticed last week when running preview build: 6.1.13-preview2340432
Workaround
Encapsulated the cmd with:
$bcContainerHelperConfig.usePwshForBc24 = $false
Export-NavContainerDatabasesAsBacpac
$bcContainerHelperConfig.usePwshForBc24 = $true
Command or script used to produce the issue
Export-NavContainerDatabasesAsBacpac `
-ContainerName $ContainerNameMultiTenant `
-tenant @() `
-sqlCredential $buildCredential `
-bacpacFolder $PathToBackup `
-doNotCheckEntitlements:$true
Full output of the command or script
Exception Script Stack Trace:
at Invoke-SqlCmd, C:\run\pscoreoverrides.ps1: line 1
at Invoke-SqlCmdWithRetry, C:\run\HelperFunctions.ps1: line 446
at Test-NavDatabase, C:\run\HelperFunctions.ps1: line 290
at Copy-NavDatabase, C:\run\HelperFunctions.ps1: line 180
at , : line 414
PowerShell Call Stack:
at Invoke-ScriptInBcContainer, C:\agent3\PSModules\BcContainerHelper\6.1.13\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 82
at Export-BcContainerDatabasesAsBacpac, C:\agent3\PSModules\BcContainerHelper\6.1.13\Bacpac\Export-NavContainerDatabasesAsBacpac.ps1: line 70
at Export-cdsaMultitenantBacpac, C:\agent3\PSModules\cdsa.build.al\1.0.250414\public\container\Export-cdsaMultitenantBacpac.ps1: line 55
at , C:\agent3_work\5\s\ERP.Builds\ERP AL\Invoke-FullBuild-PostBuild.ps1: line 78
at , : line 1
at , C:\agent3_work_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.272.7\azurepowershell.ps1: line 261
at , C:\agent3_work_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.272.7\azurepowershell.ps1: line 257
at , : line 1
at , : line 22
at , : line 18
at , : line 1
Container Free Physical Memory: 68.6Gb
Disk C: Free 122Gb from 127Gb
Services in container C251321PostBuild-MULTI:
- MicrosoftDynamicsNavServer$BC is Running
- MSSQL$SQLEXPRESS is Running
Export-NavContainerDatabasesAsBacpac Telemetry Correlation Id: f2add044-6977-478c-84c9-007be5a64b1a
Additional information
No response
Does this happen every time?
Yes
Did this used to work?
Yes
BCContainerhelper version
6.1.13
Describe the issue
Since latest changes in bccontainerhelper 6.1.13 the cmdlet Export-NavContainerDatabasesAsBacpac starts to fail. Already noticed last week when running preview build: 6.1.13-preview2340432
Workaround
Encapsulated the cmd with:
$bcContainerHelperConfig.usePwshForBc24 = $false
Export-NavContainerDatabasesAsBacpac
$bcContainerHelperConfig.usePwshForBc24 = $true
Command or script used to produce the issue
Full output of the command or script
Exception Script Stack Trace:
at Invoke-SqlCmd, C:\run\pscoreoverrides.ps1: line 1
at Invoke-SqlCmdWithRetry, C:\run\HelperFunctions.ps1: line 446
at Test-NavDatabase, C:\run\HelperFunctions.ps1: line 290
at Copy-NavDatabase, C:\run\HelperFunctions.ps1: line 180
at , : line 414
PowerShell Call Stack:
at Invoke-ScriptInBcContainer, C:\agent3\PSModules\BcContainerHelper\6.1.13\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 82
at Export-BcContainerDatabasesAsBacpac, C:\agent3\PSModules\BcContainerHelper\6.1.13\Bacpac\Export-NavContainerDatabasesAsBacpac.ps1: line 70
at Export-cdsaMultitenantBacpac, C:\agent3\PSModules\cdsa.build.al\1.0.250414\public\container\Export-cdsaMultitenantBacpac.ps1: line 55
at , C:\agent3_work\5\s\ERP.Builds\ERP AL\Invoke-FullBuild-PostBuild.ps1: line 78
at , : line 1
at , C:\agent3_work_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.272.7\azurepowershell.ps1: line 261
at , C:\agent3_work_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.272.7\azurepowershell.ps1: line 257
at , : line 1
at , : line 22
at , : line 18
at , : line 1
Container Free Physical Memory: 68.6Gb
Disk C: Free 122Gb from 127Gb
Services in container C251321PostBuild-MULTI:
Export-NavContainerDatabasesAsBacpac Telemetry Correlation Id: f2add044-6977-478c-84c9-007be5a64b1a
Additional information
No response
Does this happen every time?
Yes
Did this used to work?
Yes