Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / installation failed co...
Commerce forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

installation failed commerce scale unit

Posted on by 131

Hi,

Installation failed of commerece scale unit, while installing  Async Client step, in DeployAsyncClient log file nothing to know why it is failed,

pastedimage1642861110679v1.png

DeployAsyncClient log file is here:

01/22/2022 19:00:51: --------------------- Custom action started... ---------------------
01/22/2022 19:00:52: Copy of file created: C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\AsyncClient-topology-updated.xml.
01/22/2022 19:00:52: Copy of file created: C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\AsyncClient-settings-updated.xml.
01/22/2022 19:00:52: Build the credentials from username(s) and password(s)
01/22/2022 19:00:52: --------------------- Run the script "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\DeployTopology.ps1" to configure custom action ---------------------
1/22/2022 7:00:52 PM: Dot sourcing "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\Common-Web.ps1"
1/22/2022 7:00:52 PM: Dot sourcing "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\Common-WinService.ps1"
1/22/2022 7:00:52 PM: Dot sourcing "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\Common-Database.ps1"
1/22/2022 7:00:52 PM: Loading "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\Microsoft.Dynamics.Retail.Security.dll"
1/22/2022 7:00:52 PM: Saved topology file at "C:\Users\Administrator\AppData\Local\Temp\tmpEA50.tmp"
1/22/2022 7:00:52 PM: Making sure all settings were expanded
1/22/2022 7:00:53 PM: Expanding topology references
1/22/2022 7:00:53 PM: Expanding param-ref!!ClientSecret
1/22/2022 7:00:53 PM: ############### Error occurred: ###############
1/22/2022 7:00:53 PM:

PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: Unable to find type
[Microsoft.Dynamics.Retail.Security.DPAPICipher].
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
frame)
at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
TargetObject : Microsoft.Dynamics.Retail.Security.DPAPICipher
CategoryInfo : InvalidOperation: (Microsoft.Dynam...ity.DPAPICipher:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Convert-SecretToSetting, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store
Scale Unit\Tools\Common-Configuration.ps1: line 3888
at Get-TopologyParameterValue, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store
Scale Unit\Tools\Common-Configuration.ps1: line 3907
at Expand-TopologyReferences, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store
Scale Unit\Tools\Common-Configuration.ps1: line 3944
at DeployUnDeploy-Topology, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store
Scale Unit\Tools\Common-Configuration.ps1: line 4019
at Deploy-Topology, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale
Unit\Tools\Common-Configuration.ps1: line 4083
at <ScriptBlock>, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale
Unit\Tools\DeployTopology.ps1: line 24
at <ScriptBlock>, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale
Unit\Tools\Configure-CustomAction.ps1: line 195
at <ScriptBlock>, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content\Co
nfigureRetailComponents\DeployComponent.ps1: line 56
at Invoke-ScriptBlock, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\conte
nt\ConfigureRetailComponents\MiscHelperFunctions.psm1: line 105
at Invoke-ScriptAndRedirectOutput<Process>, C:\Users\Administrator\AppData\Local\Temp\StoreSyst
emSetup.content\content\ConfigureRetailComponents\MiscHelperFunctions.psm1: line 164
at Deploy-Component, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content
\ConfigureRetailComponents\DeployComponent.ps1: line 52
at <ScriptBlock>, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content\Co
nfigureRetailComponents\DeployComponent.ps1: line 87
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}


Executed:
C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\DeployTopology.ps1
Parameter: TopologyXmlFilePath Value: C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\AsyncClient-topology-updated.xml
Parameter: SettingsXmlFilePath Value: C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\AsyncClient-settings-updated.xml
Parameter: Credentials Value: System.Management.Automation.PSCredential[]

Exiting with error code 2.
01/22/2022 19:00:53: --------------------- Finished running the script "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\DeployTopology.ps1" with exit code: 2. ---------------------
01/22/2022 19:00:53:

PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: Execution of the deployment script "C:\Program
Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale Unit\Tools\DeployTopology.ps1"
failed. Exit code:2
TargetObject : Execution of the deployment script "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail
Store Scale Unit\Tools\DeployTopology.ps1" failed. Exit code:2
CategoryInfo : OperationStopped: (Execution of th...ed. Exit code:2:String) [], RuntimeException
FullyQualifiedErrorId : Execution of the deployment script "C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail
Store Scale Unit\Tools\DeployTopology.ps1" failed. Exit code:2
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, C:\Program Files (x86)\Microsoft Dynamics 365\70\Retail Store Scale
Unit\Tools\Configure-CustomAction.ps1: line 200
at <ScriptBlock>, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content\Co
nfigureRetailComponents\DeployComponent.ps1: line 56
at Invoke-ScriptBlock, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\conte
nt\ConfigureRetailComponents\MiscHelperFunctions.psm1: line 105
at Invoke-ScriptAndRedirectOutput<Process>, C:\Users\Administrator\AppData\Local\Temp\StoreSyst
emSetup.content\content\ConfigureRetailComponents\MiscHelperFunctions.psm1: line 164
at Deploy-Component, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content
\ConfigureRetailComponents\DeployComponent.ps1: line 52
at <ScriptBlock>, C:\Users\Administrator\AppData\Local\Temp\StoreSystemSetup.content\content\Co
nfigureRetailComponents\DeployComponent.ps1: line 87
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}


01/22/2022 19:00:53: Rolling back the custom action due to the above error.
01/22/2022 19:00:53: --------------- No roll-back action performed.---------------
01/22/2022 19:00:53: Exiting with exit code: 1.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Commerce

Featured topics

Product updates

Dynamics 365 release plans