Wednesday, January 31, 2018

Sitecore Experience Commerce - Braintree error during install

During the install of Sitecore Experience Commerce 9.0, when trying to run the install script the following error occurred:
At D:\Projects\MyProject\Install\CommerceDeploy\SIF.Sitecore.Commerce.1.0.1748\Deploy-Sitecore-Commerce.ps1:62 char:18
+  BraintreeAccount @{
+                  ~
Missing '=' operator after key in hash literal.
At D:\Projects\MyProject\Install\CommerceDeploy\SIF.Sitecore.Commerce.1.0.1748\Deploy-Sitecore-Commerce.ps1:72 char:45
+ elseif ($CommerceSearchProvider -eq "AZURE"){
+                                             ~
Missing closing '}' in statement block or type definition.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : MissingEqualsInHashLiteral
Error in install script related to Braintree config
This is a simple error where the deploy script referenced in the deploy guide was missing an equals sign. The Deploy-Sitecore-Commerce.ps1 script should be fixed up to appear as follows:
BraintreeAccount = @{
MerchantId = ''
PublicKey = ''
PrivateKey = ''
}
MerchantId should also not have a capitalized letter d on Id.

No comments:

Post a Comment