Installation script for Orchestrator fails

Scenario: script Install-Orchestrator.ps1 fails with error …doesn’t contain a method named ‘ForEach’.

Steps to reproduce: Run the script

Current Behavior: fails

Expected Behavior: Get the orchestrator web site installed

Studio/Robot/Orchestrator Version: UiPathOrchestrator2017.1

Last stable behavior: NA
Last stable version: NA
OS Version: Windows server 2012
Others if Relevant:
PowerShell error:
script Install-Orchestrator.ps1 fails with error
Method invocation failed because [System.Collections.Hashtable] doesn’t contain a method named ‘ForEach’.
At C:\Shared\scripts\Install-Orchestrator.ps1:600 char:2
$settings.ForEach({[PSCustomObject]$_}) | Format-Table Label, Value -AutoSize - …

Hello,

If I remember correctly I faced once similar error with 2016.2 orchestrator installation some time ago.
It was due to a version of PowerShell lower than the one required.

If i remember correctly the line in question was just meant to print on PowerShell the installation settings of the script (so no real impact of the effective installation. I removed it and ran the script again and it work fine.

Cheers

Issue solved: just replace the dot here with “|”.
$settings.ForEach({[PSCustomObject]$})
This is the result:
$settings | ForEach({[PSCustomObject]$
})…
There are two occurrences of same expression !
Unfortunately the script is not complete, it does not create database UiPath.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.