Skip to main content

Posts

Showing posts with the label Sitecore

How to exclude Sitecore provided assemblies from MSDeploy build outputs?

If you are working on a Sitecore solution, you will end up referring Sitecore assemblies in your solution. When you deploy your solution to a higher environment or publish it to local Sitecore instance, the Sitecore assemblies referred in solution also gets deployed/published. This creates following problems -  chances of accidentally overwriting out of box Sitecore assemblies and breaking your Sitecore instance increased size of your deployment artifacts So how do you exclude Sitecore-provided assemblies when you build solutions?? The sc-packages NuGet feed includes version-specific packages that you can use to easily validate or exclude Sitecore-provided assemblies when you build solutions. You can use the below command to check these assemblies -  nuget list Sitecore.Assemblies -Source https://nuget.sitecore.com/resources/v3/index.json -AllVersions How does it work? You can use custom MSBuild logic to exclude Sitecore-provided assemblies from publishing. All you have to do is to ins

Sitecore Publishing Service jobs fail with errors saying - The connection does not support MultipleActiveResultSets

 Recently, a fellow Sitecorian reached out to know my views on a problem he was experiencing related to Sitecore Publishing Service 7. He reported that his publishing service has been configured correctly and was working fine when he checked last. Nothing has changed since then, and all of a sudden the publish jobs have started failing. We jumped into the logs to find out what we can see and it had errors like the one below -  Error in the "TreeNodeSourceProducer" System.InvalidOperationException: The connection does not support MultipleActiveResultSets.    at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__126_0(Task`1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()    at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous

Item Bucket Settings in Sitecore SXA

Do you know when the SXA module is installed, the Item Bucket Settings from  /sitecore/system/Settings/Buckets/Item Buckets Settings are not considered This is because SXA has its own provider for buckets. You can find this defined in /App_Config/Modules/SXA/Foundation/Sitecore.XA.Foundation.Multisite.config: <setting name="BucketConfiguration.DynamicBucketFolderPath" value="Sitecore.XA.Foundation.Multisite.Buckets.SiteBucketPathProvider, Sitecore.XA.Foundation.Multisite" patch:source="Sitecore.XA.Foundation.Multisite.config"/> 

Sitecore CLI error - The request queue limit of the session is exceeded

Welcome to another short story about debugging an issue we faced recently during our production release. We use Azure DevOps build/release pipelines to release our code to higher environments. The Problem We have an Install Sitecore Items task in release pipeline to install Sitecore items on higher environments. We started facing an issue where the task failed with below errors - 2023-12-20T21:17:46.2357659Z Root config: C:\azagent\A3\_work\_tasks\InlinePowershell_31f040e5-e040-4336-878a-59a493355534\1.1.7\sitecore.json 2023-12-20T21:17:46.2383724Z [GraphQLHttpException] Unexpected HttpResponseMessage with code: InternalServerError 2023-12-20T21:17:46.2499102Z at GraphQL.Client.Http.Internal.GraphQLHttpHandler.ReadHttpResponseMessageAsync(HttpResponseMessage httpResponseMessage) 2023-12-20T21:17:46.2500367Z at GraphQL.Client.Http.Internal.GraphQLHttpHandler.PostAsync(GraphQLRequest request, CancellationToken cancellationToken) 2023-12-20T21:17:46.2501478Z at Sitecore.DevEx.Core.Client

Ghanendra Singh wins Sitecore Most Valuable Professional award

  Ghanendra Singh  wins Sitecore Most Valuable Professional award Elite distinction awarded for commitment and dedication to the Sitecore community   Noida, India — February 09, 2024 ::  Ghanendra Singh, Senior Sitecore Engineer  at Crowe Horwath IT Services LLP has been named a Most Valuable Professional (MVP) in the Technology category  by Sitecore ® , a global leader in end-to-end digital experience management software. Ghanendra Singh  was one of only 147 Technology MVPs worldwide to be named a Sitecore MVP this year. Now in its 18 th year, the MVP program recognizes professionals who actively share their knowledge and expertise with online and offline Sitecore communities to help them best utilize Sitecore products to deliver premier customer experiences. Selected from more than 16,000 certified developers and over 30,000 active community participants, the 247 MVPs are truly an elite group. This year’s MVPs were selected by a panel of Sitecore employees – ranging from d

My Contributions to Sitecore Community in 2023

Hello!! This year started with a bang for me as I got my first Sitecore MVP title. This year, I have mostly worked on Sitecore 10.1.1 as part of IT team of an accounting services organization. Due to my nature of work, I dont have exposure to different projects exploring variety of new Sitecore tools and technologies (like my other fellow MVPs have), but I have used this year to upgrade my learning and dig deeper into Sitecore XP on which I primarily work. Below are my contributions this year -  Sitecore Blogs Below are the links to all my blogs which I have published in year 2022 on Sitecore.  https://ghanendras.blogspot.com/2023/02/experience-of-first-time-sitecore-mvp.html https://ghanendras.blogspot.com/2023/02/make-sitecore-instance-faster-using.html https://ghanendras.blogspot.com/2023/03/solr-search-facet-values-limited-to-100.html https://ghanendras.blogspot.com/2023/06/testing-sitecore-with-selenium-nunit.html https://ghanendras.blogspot.com/2023/08/animated-gif-files-become-n

No root node was present (with Id 11111111-1111-1111-1111-111111111111) - Error in Sitecore Publishing service job

 The Problem I was setting up publishing service for Sitecore instance and then published a few items but my publish jobs kept failing as in snapshot below -  I found below error in publishing service logs - 2023-11-08 23:00:26.790 +05:30 [Error] There was an error performing the publish during stage: "" System.AggregateException: One or more errors occurred. (One or more errors occurred. (No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes')))  ---> System.AggregateException: One or more errors occurred. (No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes'))  ---> System.ArgumentOutOfRangeException: No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes')    at Sitecore.Framework.Publishing.Common.DataStructures.Tree.TreeBuilder`2.Build(ITreeNodeDescriptor`2[] allNodes)    at Sitecore.Framework.Publishing.ItemIndex.FullSour