Wednesday, January 31, 2018

Sitecore 9 Install - unrecognized escape sequence or illegal path

During the install of Sitecore 9 (update-1) locally, the SIF script was giving the following error:
ConvertFrom-Json : Unrecognized escape sequence.
Sitecore 9 - Unrecognized escape sequence
The issue was the file path was not escaped correctly, in the xconnect-xp0.json file I needed file paths to be escaped as follows:
If you try re-running the script the following error may occur:
Install-SitecoreConfiguration : Unable to parse [resolvepath(parameter('Package'))] - Exception calling"InvokeWithContext" with "2" argument(s): "The running command stopped because the preference variable"ErrorActionPreference" or common parameter is set to Stop: Illegal characters in path."
Sitecore 9 - Illegal path
Paths will also need to be escaped in the sitecore-XP0.json file.

You may also need to escape the path in the install.ps1 script the installation guide gives you the option of creating.

Also please check the the references to Package = "$PSScriptRoot\\Sitecore 9.0.1 rev. 171219 (OnPrem)" are on a single line and does not go over into two lines (numbered).

Filename incorrectly goes onto two lines
Fixing these issues should allow the script to work as intended.

No comments:

Post a Comment