Closed GreatScott000 closed 3 years ago
Same sort of error if I leave the CU number blank for "latest".
Specific NAV 2016 version selected
NAV 2016 has 62 released cumulative updates.
! accept default answers for the remaining questions Enter x to start over Enter z to go back
Enter CU number (0 is rtm or leave blank for latest) (default latest)
latest selected
Invoke-Expression : The variable cannot be validated because the value 9.0.52001.0 is not a valid value for the Version variable. At D:\PS\CreateContainer.ps1:1 char:1
- Invoke-Expression (New-Object System.Net.WebClient).DownloadString("h ...
+ CategoryInfo : MetadataError: (:) [Invoke-Expression], ValidationMetadataException + FullyQualifiedErrorId : ValidateSetFailure,Microsoft.PowerShell.Commands.InvokeExpressionCommand
Seems to happen for any NAV version/CU I try.
I think it is just "broken". Same error trying to select latest on prem version.
\ \ / / (_)
\ \ / / _ _ _
\ \/ / \ '/ | |/ | ' \ \ / / | \ \ | () | | | | \/ _|| |/_|__/|| |_|What version of Business Central do you need? If you are developing a Per Tenant Extension for a Business Central Saas tenant, you need a Business Central Sandbox environment
a Latest Business Central Sandbox b Latest Business Central OnPrem c Insider Business Central Sandbox for Next Major release (requires insider SAS token from http://aka.ms/collaborate) d InsiderBusiness Central Sandbox for Next Minor release (requires insider SAS token from http://aka.ms/collaborate) e Specific Business Central Sandbox build (requires version number) f Specific Business Central OnPrem build (requires version number) g Specific NAV 2018 version h Specific NAV 2017 version i Specific NAV 2016 version
! accept default answers for the remaining questions x start over z go back
Version (default a) b
Latest Business Central OnPrem selected
Invoke-Expression : The variable cannot be validated because the value is not a valid value for the Version variable. At D:\PS\CreateContainer.ps1:1 char:1
+ CategoryInfo : MetadataError: (:) [Invoke-Expression], ValidationMetadataException
+ FullyQualifiedErrorId : ValidateSetFailure,Microsoft.PowerShell.Commands.InvokeExpressionCommand
Even latest sandbox
What version of Business Central do you need? If you are developing a Per Tenant Extension for a Business Central Saas tenant, you need a Business Central Sandbox environment
a Latest Business Central Sandbox b Latest Business Central OnPrem c Insider Business Central Sandbox for Next Major release (requires insider SAS token from http://aka.ms/collaborate) d InsiderBusiness Central Sandbox for Next Minor release (requires insider SAS token from http://aka.ms/collaborate) e Specific Business Central Sandbox build (requires version number) f Specific Business Central OnPrem build (requires version number) g Specific NAV 2018 version h Specific NAV 2017 version i Specific NAV 2016 version
! accept default answers for the remaining questions x start over z go back
Version (default a)
Latest Business Central Sandbox selected
Invoke-Expression : The variable cannot be validated because the value is not a valid value for the Version variable. At D:\PS\CreateContainer.ps1:1 char:1
- Invoke-Expression (New-Object System.Net.WebClient).DownloadString("h ...
+ CategoryInfo : MetadataError: (:) [Invoke-Expression], ValidationMetadataException + FullyQualifiedErrorId : ValidateSetFailure,Microsoft.PowerShell.Commands.InvokeExpressionCommand
New-BcContainerWizard seems to be me past this issue. I thought using the webclient download model was recommended?
You are saying that you get the error when using invoke-expression, but not when using new-bccontainerwizard?
The only reason for using the webclient model really is that you always get the latest version and it will check your containerhelper version. In your case - you are using the latest and the two things should be identical. The strange thing here is that the message you get is something PowerShell gives when validating parameters with parameter validators and I do not have any parameter validators setup for any version parameter in containerhelper.
What version of the host OS are you running?
To answer the question Windows 10 Pro (2004). Here are the details from a script that uses NAV2016 CU45 from outside the wizard.
However: Today it works just fine. So I think we can close this. Just a glitch in the Matrix before Christmas.
BcContainerHelper is version 1.0.17 BcContainerHelper is running as administrator Host is Microsoft Windows 10 Pro - 2004 Docker Client Version is 20.10.0 Docker Server Version is 20.10.0 Removing container bcserver Removing bcserver from host hosts file Removing bcserver-* from host hosts file Removing d:\bccontainerhelper\Extensions\bcserver Fetching all docker images Using image mcr.microsoft.com/businesscentral:10.0.19041.685 Creating Container bcserver Version: 9.0.51476.0-gb Style: onprem Multitenant: No Platform: 9.0.51476.0 Generic Tag: 1.0.1.2 Container OS Version: 10.0.19041.685 (2004) Host OS Version: 10.0.19041.685 (2004)
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue I am trying to create a new container for NAV 2016 CU45 and I keep getting this error:
There is a CU45 (I have been using it for weeks) and I can get the URL for it.
Gives me
Scripts used to create container and cause the issue
Full output of scripts
Screenshots If applicable, add screenshots to help explain your problem.
Additional context