Posts

Sitecore Analytics: The Certificate was not Found

Image
One of the frequent challenges we face is the absence of Analytics data in the Sitecore Experience Profile. This issue can be quite frustrating, but there is a solution. In this blog post, I will delve into the reasons behind the "The certificate was not found" problem and explain how to resolve it using Azure Managed Cloud Service PaaS. In this case, The very first step is analyzing logs on the CD and xConnect server. I have checked the xConnect Collection server's log and it seemed to stop, which suggested that there had been some issue with xConnect trying to collect the analytics data. In this case, I have to look into the CD server. I found a lot of xDB-related errors in the CD server, with a similar stack trace as below. Error: xDB unavailable when submitting contact The nested error seems to suggest the error is related to the missing client certificate required for xConnect and xDB communication. The amount of Submit Qu...

Add New Member Option Missing on Content Hub Schema Page

Image
The Add New Member option is missing from the Schema page. I have been investigating one of the issues in our Content Hub environment. I tried to recall the steps when I encountered a similar issue, but it resolved itself automatically after some time. Here are the steps I performed: Go to the M.content schema using the Schema option from the dashboard. Select the Settings option from the three-dot menu at the top right corner. Enable the Taxonomy-enabled definition. After enabling this option, the Add new member button disappears, along with the Settings option, making it impossible to disable the setting again. The above screenshot I have taken from different CH environments to elaborate on the issue. Workaround: 1. As a preliminary step, I recommend that you try discarding any changes to the M.Content schema. After doing so, verify if the new members become visible. 2. If it's still not resolved, then this issue belongs to the C...

Get a List of all Content Entities of the Same Content Type in Sitecore Content Hub

Image
While working on the Content Hub project I received the requirement to get all the Content Entities of a specific Content Type from the Content Hub. For instance, if your Content Hub contains various types of content entities such as a Blog, Article, and News type and there are multiple entities of each content type. Here I am taking an example of retrieving all the Content Entities of the Blog type. To get the list of all the content types, you can use  Web Client SDK , there is a method to retrieve the single entity using the  Get entities method. Solution: 1. Create a sample console/web application in Visual Studio and add a reference to the Web Client SDK NuGet package (Stylelabs.M.Sdk.WebClient) to your project.  2. Before beginning to write the logic, you should have the Parent ID of the Content Entities that represent the ID of the Content-Type. To find the Content Type ID or Parent ID of a content entity from the Conten...

Sitecore 10.4 Installation Authenticode Issuer

Image
While installing Sitecore 10.4, I encountered an error about the Authenticode issuer and SitecoreInstallFramework version. The error message is about Sitecore Install Framework conflicts. To investigate more about it and to check the version I executed the following command in PowerShell and I have SIF version 2.3: Get-Module SitecoreInstallFramework –ListAvailable As stated in this error Sitecore 10.4 version requires SIF version 2.4 and to install it Sitecore suggested in error that use the -SkipPublisherCheck parameter, so to install this, execute the following command: Install-Module SitecoreInstallFramework -SkipPublisherCheck -Force After execution if you get the following error: Then Execute the following command to register repositories and register as trusted. Register-PSRepository -Name SitecoreGallery -SourceLocation https://nuget.sitecore.com/resources/v2 Set-PSRepository -Name SitecoreGallery -InstallationPolicy Trusted ...

Mention a Content Hub User Group in an Annotation

Image
Sitecore Content Hub provides an Annotation feature, that you can use to review content, provide feedback and collaborate with others.  To mention a Content Hub user in an Annotation, Select the text in Content Entity, enter @ followed by a username, and select as many people as you want. When you mention a user, they receive an email with your comment and a link to the content entity. The issue is Sitecore Content Hub Provides a feature that you can mention the User but if there is a User group and you want any of them can review, approve, or take action on the entity so no such option we have in Sitecore to mention a User Group in an annotation.  I have checked with Sitecore and Sitecore submitted a feature request for the Content Hub product so that it can be considered for future versions of the product. To track the future status of this request, please use the reference number " FRM-2121 ". See the Sitecore documentation for How ...

Custom Button on Content Details Page in Sitecore Content Hub

Image
In this blog post, I will discuss how to add a custom button on the Content Details page in the Sitecore Content Hub. To understand the use case of this feature, suppose you have a client requirement to perform any business logic on that particular entity for instance updating field values or applying auto-tagging, etc. 1. Go to the pages option from the Manage button in the top right corner of the Home page. 2. In the pages, search for the Content Details page: 3. On the Content Details page, locate the operations/entity operations, in the Header Zone (Right). By default, it can be disabled so enable it by system settings. 4. After that, it will be enabled, and click on the Operation/Entity Operations it navigates to the entity operation component. 5. We will add a new operation, click on the Add operation button on the top left and find the custom External Action. 6. Name it as per your requirement, I am naming it AI Tagging, to change the ...

Create Script, Action, and Trigger in Sitecore Content Hub

Image
Sitecore Content Hub provides a script editor feature to write custom scripts and perform our business logic. Depending on the type of script and use cases, we can trigger the script manually or automatically using triggers. 1. Script: Sitecore Content Hub offers the following Script types . To create a script in Sitecore Content you can refer to the blog post:  Execute Content Hub Script using Postman 2. Action: Sitecore content Hub offers Action to perform a specific task. Action can either triggered by the user or automatically run by trigger or via the API. To create an action, go to the Content Hub dashboard using the manage icon and click on the Action icon: It will open an Action page window, click on the add New Action icon: In the popup window, provide the Name and Label of the action, Type I am selecting Action Script, choose the script that we created earlier, and click save: Your action has been created: For another Actio...

Execute Content Hub Script using Postman

Image
Sitecore Content Hub provides a script editor feature to write custom scripts and perform our business logic. Depending on the type of script and use cases, we can trigger the script manually or automatically using triggers. In this blog post, I am explaining how to execute the script manually using Postman. To execute the script from Postman, you need the Script URL and X-Auth-Token. Go to the Content Hub dashboard using the manage icon and click on the Script icon: It will open a Scripts page window, click on add new script icon: In the popup window, provide the Name and Type of the script and click save, I am choosing Action type here: Search your script in the Script window and click on the script name, it will open the script editor to write a script: Click on the Edit icon write the custom script and save the changes button: Click on the Build button, it builds your scripts and lets you know about the build status in the build output whe...