Skip to main content

Posts

Sitecore 10.2 Headless SXA is looking for "master" db on CD server

Hi Folks, Sometimes you are trying to troubleshoot one thing and end up solving another :), How many of you have ended up same?  Well, I was actually troubleshooting the high CPU and no. of requests on CD was trying to find some error patterns from Sitecore logs for one of the issues we were facing, there was one specific error which we kept observing was below Exception and if you drill further down into it, Sitecore was looking for master DB on CD servers, which is not possible, so definitely, this is bug I previously faced the same error but for other assembly and to troubleshoot and resolving that the approaches were different but for both meaning of the error is same, for 10.3 where i got the error is drafted here  Error in Sitecore 10.3 XM with CDs - Could not find configuration node: database/database[@id='master'] Troubleshooting It was clear that because some the code which is in "VersionInitializer" class of "SItecore.XA.Foundation.Upgrade.dll" is ...
Recent posts

Sitecore XM Cloud Components - BYOC - Bring in your existing react or nextjs component library

Hi All, Last year i did lot of research and hands on to "XM Cloud Component Builder", Very powerful futuristic tooling provided by Sitecore. At that time it was still in "Early Access" phase. You can have a look at my "SUGCON 2023 - Presentation on XM Cloud Component Builder"   to know about it's capabilities and use cases. and if you are PODCAST lover, find the podcast here   I would highly recommend going through above video or podcast to understand "Low code, No code" and what is "FeaaS" and power of it, As LCAPs (Low Code Application Platforms) are growing at the speed of around 25% every year, And it's a future. Now, Let's talk about Part-2 of it, more advance use cases of "XM Cloud FeaaS", Once you have understanding of the component builder, you can do wonders, and this part-2 we will talk about something amazing it can do which is BYOC, Bringing Your Own Components. What is BYOC - Bring Your Own Code (Or Co...

Every Sitecore Instance using GQL is prone to this scenario of template not found - Sitecore Component With GQL Queries Broke On Production

Hello Team, Today, I wanted to share a real scenario and a solution of it about what happened  suddenly to our components and how we identified it and how we resolved it, and most importantly it could happen to your installations too Scenario We have one Sitecore 10.2 headless instance and two sites, One site is non-sxa which is legacy site and another site is a new site which uses headless SXA. Now, non-sxa site is already live and working fine with all components etc. and the new headless site was in development and it has separate development team, So we have same DEV/UAT/PROD environments. One fine morning they took their code and site on environment but strangely some of the GQL components like header footer of legacy site disappeared.  Troubleshooting Steps 1) We checked the broken component's GQL query  2) We took that query and fired it in GQL IDE, and we observed that, Some of the templates references we used were not found, which was working just fine and we hav...

Sitecore GQL not showing template in auto suggestion while using GQL playground

Hi Team, We all work with GraphQL playground which was new some years back and we were all learning, today i am going to share a scenario which you might face too, So you can get the answer or solution handy with this blog post Scenario There are many of our components and code calling GQL, All works fine, but one scenario where it kept showing "Unknown type", There was nothing fancy there and same query and same expectations but it was failing, Below are details of it. So, The context is i created a template, and also created items from that template. Now, I had to write GQL just expose those content because our another downstream system will consume that data and use it. But when i wrote simple query, it kept giving me "Unknown type" error and i was little clueless, Here is what is kept showing.   Troubleshooting 1) I double checked, If template "RecurringScript" exists with same name in Sitecore 2) I renamed the template just to try but it did not work ...

Sitecore SearchStax Component showing different results on every page refresh issue, troubleshooting, solution

Hi Fellas, In today's blog post I will share a scenario which will help you also in your implementation, what is important here is to understand the issue when it is produced. Generally, it is always puzzling why certain components show different results on different page refresh, and because my team members also spent same amount of time on both of the different scenarios and hence, I thought to get this article out, I will explain those two scenarios and also provide solution at the end, Though solution is easy and available on lot of sites but important here is finding out what is the issue and what are the steps to identify it, so in this blog post my focus is to show you the steps of identification rather than solution. Scenario Here are those two scenarios Sccenario-1 On a home page we have a Sitecore component, which has a custom resolver, and that resolver basically reads from solr index and hits the query and returns the JSON result, and that is being read in JSS component...

Sitecore Multisite - Unexpected provider type: System.String. Expected: Sitecore.Links.LinkProvider

Hi Team, Today's blog post is regarding real live scenario which we came across while having multisite solution in Sitecore headless set up. Well, We have had couple of deployments but one fine morning after the deployment we started getting below error on our stagging site (UAT) and in Sitecore logs we were getting same following logs  Exception: System.InvalidOperationException Message: Unexpected provider type: System.String. Expected: Sitecore.Links.LinkProvider Source: Sitecore.Kernel    at Sitecore.Configuration.DefaultFactory.GetProviders[TProvider,TCollection](List`1 nodes)    at Sitecore.Configuration.DefaultFactory.GetProviders[TProvider,TCollection](String rootPath, TProvider& defaultProvider)    at Sitecore.Configuration.ProviderHelper`2.ReadProviders()    at Sitecore.Configuration.ProviderHelper`2.get_Provider()    at Sitecore.Links.DefaultLinkManager.ParseRequestUrl(HttpRequest request)    at Sitecore.Web...

Sitecore XM Cloud Forms - What changed since the launch

Hi Team, I had an opportunity to take part in " Collaborative Program – XMC Forms Early Access" with Sitecore team to play around XM Cloud Sitecore Forms along with few of my colleagues before 6 months, When forms were not released officially, and the purpose was to review XM Cloud forms and provide feedback around it, We had great opportunity to connect with product Strategist  Christa Marousek  and Senior Product Manager  Marina Kostopoulou  on reoccurring meetings. I along with my colleagues  Brijesh Patel    Nimit Patel   Varun Shringarpure    Jatin Prajapati   Varalakshmi MD   Gautam Bulchandani   Irfan Masurkar  and lot other folks explored Sitecore XMC Form and provided our inputs / feedbacks / improvement that we think should be part of public offering of Sitecore XMC Forms. The objective of that program was to get inputs from partner community about forms and give them a feedback and improvise it. In this blo...

Sitecore Solr/SearchStax Auto Suggestions - suggester was not built error and fix

HI Team, This one will be very quick blog post, But sharing it here so it helps anyone on the internet having same issue Problem We are using SearchStax and we have been using auto suggestions functionality of it, Everything was working fine and suddenly lot of users started reporting that they are not able to search anything in the search box. As this was P1, I started looking into the probable cause and logs, first i saw in console that we were getting 500 error, that means there is some issue being thrown from the backend. Upon checking logs found following in logs  The error was "suggester was not built" Well, I knew there is some issue with suggester which causing it to fail, but puzzle was, It has always been working for us Now, because we have this error on SearchStax documentation, If you refer below link, it says  https://www.searchstax.com/docs/hc/suggester-was-not-built/ "The root cause is often query fields that are not defined in the Solr schema. Look in the...

Sitecore Technical Workshops - Top FAQs customers asked on XM Cloud

Hi Readers, I want to talk to you about interesting things which we have been doing which is "Technical Workshops" for our customers, so here goes the scenarios. So, we have been doing multiple types of technical workshops.  1) Training customer and their Sitecore technical team on latest and the greatest technologies like XM Cloud & Another composable stack and try enabling them for new Sitecore tech stack. 2) Customers / Potential Customers have their agenda of existing pain points, and we take a workshop on topics around them with best practices etc. little on new technologies, so they also know the future. Basically, we prepare custom targeted presentations & demos for individual workshops, and make sure it helps them answer their questions and they get insights of where Sitecore eco systems has to offer from their versatile toolset and try to keep them up to date with it. So, Purpose of this blog is, because in all these customer & their technical team's ...