Posts

Sitecore XP/XC 10 installation - Identity Server gives 502 error

Image
 You might install Sitecore XP instance successfully but when browsing Identity Server, it returns 502 error. That could be caused by not having .NET Core 2.1.16 installed in your system as you can check from Sitecore.IdentityServer.Host.runtimeconfig.json. Even if you have higher .NET Core version installed. Grabbing the installer here will fix it: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-2.1.16-windows-x64-installer Happy Sitecoring!

Sitecore XP/XC 10 installation fails at WebDeploy task

  Recently I have encountered the error below when trying to run the WebDeploy task. Install-SitecoreConfiguration : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero exit code - (-1073741819) At C:\SitecoreXC10_Install\XC10\SIF.Sitecore.Commerce.5.0.42\sc100_com_install.ps1:292 char:5 +     Install-SitecoreConfiguration @deployCommerceParams -Verbose *>&1 +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException     + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration Normally it could be fixed by installing the following missing prerequisites Microsoft ODBC Driver for SQL Server  Microsoft Command Line Utilities for SQL Server DacFx and SQLSysCLRTypes. However I tried install/reinstall all the them but still failing. With a stroke of luck, I closed the normal powershell window and reopen anothe

Could not create instance of type: Sitecore.ContentSearch.Azure.CloudSearchProviderIndex. No matching constructor was found

Image
A. Scenario Open Indexing Manager in Sitecore dashboard, the error below appears B. Triaging My Sitecore instance was deployed on Azure by another party. It was configured to used SOLR cloud as search engine. I want to switch to Azure Cognitive Search.  It was supposed to be a simple switch by updating the app setting value in the web.config from  < add key= "search:define" value = "Solr" /> to  < add key= "search:define" value = "Azure" /> But it was not. C. Debugging Step 1: Understand basic knowledge For each of the indexes found in the Indexing Manager, it is created from a config file. For example, the  sitecore_testing_index is configured with either  Sitecore.ContentTesting.Solr.IndexConfiguration.config or  Sitecore.ContentTesting.Azure.IndexConfiguration.config Depending on whether we use the search:define value as Solr/Azure, one file will be activated and the other one will be deactivated accordingly. Looking at the 

[Azure App Service] Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

Image
Scenario : Sitecore deployed on Azure App Service running JSS in Integrated Mode. I ran everything by the book (aka followed the link here: https://jss.sitecore.com/docs/techniques/azure-deployment) doing step 3 & 4 However loading the site and an yellow page of death showing the above error. A few hours of scratching the head and searching the web went by... Found this gem on the web: https://blog.yannickreekmans.be/use-node-js-64-bit-on-azure-app-service/ It turns out that you have to let the App Service know the version of Node.js running on your app service.  So I added this application setting in my app service and it works like a charm: So what went wrong in the guide from Sitecore?  I rechecked step 2 which are mentioned as optional! Well, it is. However don't forget to complete step 2.6 like what I did. Happy Sitecoring!

Troubleshooting Sitecore XP 9.2 - Experience Analytics error - Exception System.ArgumentNullException: typeKey should not be null.

Image
It isn't uncommon when you open up the Experience Analytics dashboard hoping to see some beautiful graphs and charts showing analytics data and boom! It welcomes you with the ugly red lines: I am usually very calm when dealing with errors in this dashboard because I have seen many root causes and found the fixes for them. Usually they are caused by certificate issues here or there . But this time looking at the log in the website, it shows a brand new error: 30240 10:24:37 ERROR [Sitecore Services]: HTTP GET URL http://mydomain.dev.local/sitecore/api/ao/aggregates/all/0751EFD8564F40A38083EF5C6E194247/-3191897772735422194?&dateGrouping=by-auto&&dateFrom=18-01-2020&dateTo=16-04-2020&keyGrouping=by-key Exception System.ArgumentNullException: typeKey should not be null. Parameter name: typeKey at Sitecore.Framework.Conditions.RequiresValidator`1.ThrowExceptionCore(String condition, String additionalMessage, ConstraintViolationType type) at Sitecor

Sitecore XP 9.2 - Scaling with Dedicated CD - Quick Installation [part 2]

Image
Warning:  The post here contains the author's own opinions and suggestions. They may not conform with best practices from Sitecore. Apply them at your own risks. If you have not read part 1, check out the link here first . Otherwise, delve down to the steps below. 1. Install DB server with MS SQL & SOLR The installation of MS SQL 2016 and SOLR 7.5.0 need no introduction. You can easily find the guide here: https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server?view=sql-server-ver15 or there: https://lucene.apache.org/solr/guide/7_5/installing-solr.html To install SOLR as a service, check out step 5 in here: https://blogs.perficient.com/2017/10/26/setup-and-basic-preparation-for-sitecore-9-installation/ Assuming that you will use the default port 8983 for installing SOLR in this step (and subsequent steps) Make sure that when installing MS SQL server, you are installing in mixed authentication mode so you will have SQL admin

Sitecore XP 9.2 - Scaling with Dedicated CD - Quick Installation [part 1]

Image
Warning: The post here contains the author's own opinions and suggestions. They may not conform with best practices from Sitecore. Apply them at your own risks. As a developer, you all are familiar with installing Sitecore XP as a standalone system. Meaning installing everything on a single server that handle everything: Content Delivery, Content Management, Database, SOLR Engine, etc. However it might not work so well on a production environment when you have thousands of visits per day unless your system is deployed on a blade server with 20 cores processor. In most scenarios, you will have a few servers to play with. In a recent project that I work on, I was given 3 servers to setup the system. Obviously this is the initial topology that I came up with: But in Sitecore XP 9.2, you don't just have CD, CM roles. There are tons of other roles that came with this version such as xConnect Collection, xDB Processing, Marketing Automation Engine and many more. How could