Ghanendra
  • Member for 2 years, 6 months
  • Last seen this week
Error when rebuilding a Solr index: unknown field '__display_name_t_cs'
0 votes

I added a new language-region combination (tn-bw) in LanguageDefinitions.config that was not supported by Sitecore OOB. Due to this change, I started getting similar error while running index rebuilds....

View answer
How to check an item exists with powershell without raising an error?
0 votes

The above answers above work well if we Get-Item using the Path but unfortunately I was only supplied with item IDs and not Path. So if we Get-Item using ID, exception always occurs even after using -...

View answer
Unwanted update to Created Field in Sitecore TDS item
0 votes

I am answering this if anyone has similar queries in future. Sitecore support answered that- Created field values are updated by Sitecore serialization. TDS doesn't directly update them, it uses the ...

View answer
Index update process are running repeatedly in same index
0 votes

Answering this question to share my knowledge as I stumbled upon similar logs recently in one of my environments. The continuous index update jobs running one after the other is due to the syncMaster ...

View answer
Executing Sitecore PowerShell script programmatically - Sitecore path not resolving
-1 votes

I see 2 problems with your approach. First problem is related to the way you are trying to get the item. You need proper syntax like Get-Item -Path "Path" or Get-Item -ID "GUID". ...

View answer
How to edit/remove some (NOT ALL) HTML tags or attributes using Sitecore Powershell?
2 votes

You can use the HTML Agility Pack, which is designed for use in .Net code, and can be used successfully in PowerShell as well as in snippet below: Add-Type -Path 'C:\packages\HtmlAgilityPack.1.4.6\lib\...

View answer
How can I know by code if the current sitecore instance is an XP or XM?
0 votes

One way I can think is if you are on Azure, you can use powershell to get the list of apps in your subscription plan. Once you have the list of apps, you can check if the app's name matches with the ...

View answer
Copy data from en language version to other language version
0 votes

Probably the below script can help you. The comments are added to the script to make each step obvious. You can do modifications to it to suit your purpose - #Get all language versions defined in ...

View answer
Bundling and Minification not working after upgrade
Accepted answer
3 votes

You may need to create a Sitecore patch to ignore the url you're using in your bundle. Without that, Sitecore will try to resolve the url and give 404. You may be having this patch already in Sitecore ...

View answer
Calling async method inside action index() method
0 votes

You can not use async pattern in Sitecore as it does not support it. If you will try to make it work, you will get exceptions or it will work synchronously. There is a very good article from kamsar on ...

View answer
Sitecore support for async controller renderings
1 votes

You can not use async pattern in Sitecore as it does not support it. If you will try to make it work, you will get exceptions or it will work synchronously. There is a very good article from kamsar on ...

View answer
Create new language version for content branch
0 votes

This is in addition to the answers from Adam and Harsh. If your branch has large number of child items and you are adding multiple language versions to each item, adding language version will be time ...

View answer
Exporting database-based media to the file system
1 votes

If you are using SPE, there is OOB feature in SPE which can do this for you i.e. export a zip of media files. Right click on the folder containing the media files>Scripts>Download (snapshot ...

View answer
Value cannot be null. Parameter name: fieldNameTranslator | Upgrade 8.1 update 4 to 8.2 Update 2
0 votes

I got this fixed by - Recreating the solr indexes as my indexes got corrupted. You should also check if the solr indexes exist. If the indexes dont exist, create your solr indexes before you run the ...

View answer
How does the “Rebuild link database” feature work?
2 votes

Link DB plays key role in managing references across Sitecore items. In simple words, if you select an item and check Navigate>Links, it shows you all the items that refer to the current item and ...

View answer
How to check request id is a page id or datasource id in code in Sitecore?
0 votes

Atul Kumar's answer should work for you. An alternate way is to get item by ID Item item = Sitecore.Context.Database.GetItem(Sitecore.Data.ID.Parse(itemId)); and then pass the item to below func - ...

View answer
Powershell get all items that use a template
2 votes

I have done this using the below script. The idea is to go through all the child items of a node to check if the template id of the item matches with template id we are looking for or inherits from ...

View answer
What is the fix for solr error 'undefined field _indexname' after building custom index in sitecore (v9.1.0)?
2 votes

If you added a custom core in Solr, take care to include correct conf folder within your core directory. Try copying conf folder from preexisting cores like sitecore_master_index. Once this is done, ...

View answer
Debugging in VS
-1 votes

You cannot simply debug the code in visual studio when your Sitecore is sitting on a remote machine. When we debug, we attach dubugger to a local process w3wp.exe related to local application that we ...

View answer
Can we serve all the content pages from CDN instead?
0 votes

Sitecore recommends caching only the media items in CDN. There is a CDN.config available within App_Config\Include\Examples folder to enable CDN for a Sitecore application. If you still want to cache ...

View answer
Experience Analytics are not showing Online Interactions
1 votes

I faced similar issue in Sitecore 9.2. In addition to Pete's answer, you should also ensure that the below 2 configs in your xconnect instance are updated to enable tracking of anonymous users as in ...

View answer
Preview mode opens blank page
0 votes

Sitecore is not able to identify your website. Check that you site definition is correct and contains a unique hostname to identify your site correctly - <configuration xmlns:patch="http://www....

View answer
Using an Identity server for a Content Delivery
1 votes

Simply adding the configuration for identity server will not tell your CD website to enforce login. You can force login on your site by adding the requireLogin attribute to your site definition - <...

View answer
Identity Server not redirecting to Azure Frontdoor URL
0 votes

We figured out the problem. AFD url simply forwards request to the Sitecore CM webapp url. This means identity server receives request from Sitecore CM URL and not AFD url (even though we see AFD url ...

View answer
Newly created JSS react app does not start and show blank page
0 votes

For me, the app already existed and was working fine. After some deployments, the app started showing plain white page without any error. I found that the JSS files in my local Sitecore instance got ...

View answer
The CSRF cookie value did not match the CSRF parameter value exception in Chrome
1 votes

Opening it in other browser or clearing the browser session, cookies etc. helps with this problem. I prefer to open Sitecore website in a separate browser (or in incognito mode) than the one where ...

View answer
This site cant be reached error while I am loading sitecore 8.2 client
0 votes

The request is probably not hitting your sitecore site. I would probably - restart IIS Clean all application pools check hosts file if it contains entry with which the website is being accessed ...

View answer
Access Custom SQL Database in Sitecore context
1 votes

It is recommended to handle custom DB in different ways instead of using Sitecore APIs. However, need may arise to use dbs (other than default Sitecore Dbs) e.g. for having different publishing ...

View answer
Where to create list of countries
2 votes

Do not store the list of content items (in your case countries) in Dictionary. Rather have a folder called Countries in your DataRepository (Or GlobalContent) folder. Within this folder, you should ...

View answer
How to change data-source path "local:/data/test" to GUID programatically when saving page in Experience editor
-1 votes

The below link exactly answers your requirement - https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/convert-data-source-paths-to-ids-using-the-sitecore-asp-net-cms Its a ...

View answer