We have followed documentation on how to install Sitecore Commerce 9 on PaaS. We done bootstrapping and continued with remaining post installation steps.
Problem Description
After fixing issues with 403 Forbidden exceptions we tried to open Business Tools once again from Sitecore Launchpad.
Unfortunately, we saw indefinite loop during start and 400 Bad Request responses for these requests:
2x GET method – xxx.azurewebsites.net/api/GetNavigationView()
1x GET method – xxx.azurewebsites.net/api/GetLanguagesView()
This was response code: “@odata.context”:”https://xxxxxxxx-authoring.azurewebsites.net/Api/$metadata#Sitecore.Commerce.Core.CommandMessage”,”MessageDate”:”2018-05-23T12:17:32.0106229Z”,”Code”:”Error”,”Text”:”Shop ‘xxxxxxCommerceEngineStorefront’ does not exist.”,”CommerceTermKey”:”InvalidShop”
Environment was set to HabitatAuthoring.
This is how it looked like – Indefinite loop:
Solution
Solution was to navigate to default storefront under /sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts and rename it to the name that you specified as “defaultshopname” during provisioning PaaS environments.
Finally we could see expected screen when navigating to Business tools: