In the process of upgrading the Orchestrator from 2020.4.1 to 2022.10.1, the instance is falling every time with the same error.
Issue Description: While upgrading the Orchestrator from 2020.4.1 to 2022.10.1, the below error is thrown while the installer is configuring the application files.
Error while applying config transform for migration 202007021411171_EnableScheduleDisabling. Exception: Error while applying config transform for migration 202007021411171_EnableScheduleDisabling. Exception: No element in the source document matches '/configuration/appSettings/add[@key='Triggers.DisableWhenFailedCount']'. At XML line 5, position 6. At XML line 5, position 6. At XML line 5, position 6. At XML line 4, position 4. At XML line 3, position 2
The 'Triggers.DisableWhenFailedCount' key was added to the Orchestrator from 2020.10 and on trying to add manually to the web.config file under the <appSettings> before running the upgrade, the instance will still fail.
Resolution: After comparing the web.config file with another one from the same Orchestrator version and also validating the file here : https://elmah.io/tools/config-validator/
There are two attributes that were not valid to run under the web.config configuration.
Message from the config validator.
Resolution: Remove those two lines from the web.config file, the upgrade was finished without any issues and the Orchestrator instance upgraded to the latest supported version.
To first backup the config files into another directory and after that to modify them.