"The specified username is invalid." while installing Sitecore Commerce 10.1.0

Error: 


[---------------------- CommerceEngine-Pre_EnsureLocalUser : EnsureLocalUser -----------------------------------------]

The user account does not exist ... creating user 'sc1011newinstallsc_User'.

Creating sc1011newinstallsc_User

Error: System.Runtime.InteropServices.COMException

The specified username is invalid.


Install-SitecoreConfiguration : Exception calling "SetInfo" with "0" argument(s): "The specified username is invalid."

At C:\scia\Sitecore.Commerce.WDP.2021.02-7.0.162\SIF.Sitecore.Commerce.6.0.18\SCIA-sc1011newinstallsc.dev.local_Install

_Script.ps1:295 char:2

+     Install-SitecoreConfiguration @deployCommerceParams -Verbose *>&1 ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration


[TIME] 00:01:26

Invoke-EnsureLocalUserTask : Exception calling "SetInfo" with "0" argument(s): "The specified username is invalid.

"

At C:\Program

Files\WindowsPowerShell\Modules\SitecoreInstallFramework\2.3.0\Public\Install-SitecoreConfiguration.ps1:641 char:25

+                         & $entry.Task.Command @paramSet | Out-Default

+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-EnsureLocalUserTask


Solution:

Reduced length of username in the  Sitecore Commerce install script, retried and, install worked.



Comments

Popular Posts