Closed jwikman closed 2 years ago
Just tested to create a BC18 container, with BCArtifactUrl https://bcartifacts.azureedge.net/sandbox/18.5.29545.31525/se - this works as expected. And this container uses the same base image, mcr.microsoft.com/businesscentral:10.0.19042.1288, as the BC19 version with issues.
Sorry for the delay - did you try to press ctrl+Z (undo) when you see the editor turn the minus into the looong minus? In other areas, I have seen that work. I will investigate the issue.
did you try to press ctrl+Z (undo) when you see the editor turn the minus into the looong minus?
It's not like that. The editor is not changing the minus into a loooong minus. Negative values are shown with a looong minus. I cannot enter negative values either with regular minus or with looong minus.
I even had Duilio T. to repro this on his Italian machine, so it should be an easy repro for you as well. Hopefully it's as easy as you figure out why this happens. 😉
so, if you add -locale 'en-US' to your new-bccontainer, it works? or is it when you run the US artifacts?
Is there any change if you run with hyperv isolation? Have you been able to repro the problem on other windows versions (than 19042)?
(I will try on Windows 11 now)
works fine here Container creation script:
$licenseFile = $LicenseFileSecret.SecretValue | Get-PlainText
$auth = "UserPassword"
$credential = New-Object pscredential -ArgumentList 'admin', $PasswordSecret.SecretValue
$artifactUrl = Get-BCArtifactUrl -country se
New-BcContainer `
-accept_eula `
-artifact $artifactUrl `
-auth $auth `
-Credential $credential `
-licenseFile $licenseFile `
-updatehosts
so, if you add -locale 'en-US' to your new-bccontainer, it works? or is it when you run the US artifacts?
Sorry for not being perfectly clear. It's when changing the region in "My settings" inside BC this issue occurs.
If I select "Swedish (Sweden)" I get this issue (same issue with Norway, Finland and probably more)
When using "English (United States)" it works as usual
I just created a container with same issues.
$artifactUrl = Get-BCArtifactUrl -country se
New-BcContainer `
-accept_eula `
-artifact $artifactUrl `
-auth $auth `
-Credential $credential `
-licenseFile $licenseFile `
-updatehosts `
-containerName 'minus' `
-useGenericImage "mcr.microsoft.com/businesscentral:10.0.19042.1288"
All machines we've tested on was 19042.1288... Please try to change region in My Settings to see if you can get a repro there.
Now I've upgraded my machine to W11 and created a new container - same issue still exists.
Windows version 22000.282 artifactUrl https://bcartifacts.azureedge.net/sandbox/19.0.29894.32037/se genericImage: mcr.microsoft.com/businesscentral:10.0.20348.288
Did you try to install BC (on premises) using the setup.exe - and see if the problem reproes there?
On premises works fine. Installed on Windows 2016 server, (Version 1607, 14393.4704). Platform 19.0.29884.30666 + App 19.0.29894.30693
Did you manage to repro on Docker on W11?
Yes - also on Windows Server 2019 and Windows Server 2022. I have e-mailed the WebClient team and asked for their view on this - I am totally puzzled.
Ok, good. But so strange... Then let's see what they say.
I have a workaround for the issue, which is in the generic image. Until I have created new generic images, you can start the conainer with
-myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/generic/Run/150-new/SetupWebClient.ps1")
Then it should work again.
Some more info can be found here: This related to change in .NET 5, where they use the new standard called CLDR. Here it is a github thread about this issue: https://github.com/dotnet/runtime/issues/44678
Thanks @freddydk I can confirm that the workaround works. A bit strange change, but it's according to the Unicode Standard so I hope that is well grounded :)
So Nls are being used for BC Online already then?
This is not really related to BcContainerHelper. With the next round of Windows updates (generic images) the fix will be included. Until then, you will have to include the url in myscripts.
Describe the issue When using "Swedish (Sweden)" as region in your personal settings, the minus signs in all decimal fields looks strange (it is longer than the regular one) and we cannot enter anyting with a minus sign. Error received:
Your entry of '-1110' is not an acceptable value for 'Unit Price Excl. VAT'. '-1110' is not a part of a valid decimal expression.
When doing the same with "English (USA)" as region, the minus sign looks as expected and all works fine.(The same issue seems to exist in Finland and Norway, maybe others as well)
We've tried a lot of different versions, with platform both older and newer than the one we're running Online (Platform 19.0.29884.31362), with the same error. OnPrem installations seems to work as well.
So this make us believe that this is a Docker container issue.
Scripts used to create container and cause the issue We're creating container with artifact url: https://bcartifacts.azureedge.net/sandbox/19.0.29894.31532/se
Full output of scripts
Screenshots In above image you can see the strange minus sign on the first line and the regular minus in the second line, where I try to input -500
Additional context