Posts

Showing posts from October, 2024

Elasticsearch Request Failed Issue in Sitecore Content Hub

Image
Problem Statement: After setting the default values in the content entity, it gives me an error when I attempt to create a new content type. However, it also creates a content entity after an error, and it works if I create a content entity, but while creating a content entity, it returns me an Elasticsearch request failed error. Error: Solution: Sitecore has investigated and identified this issue. It involves an issue with the Elasticsearch request and requires a graph rebuild to resolve. See the documentation for more information: Schema changes, inheritance, and the graph server FAQ: 1. Duration of Graph Rebuild and Downtime: How long does the graph rebuild process typically take, and how much downtime will be required for the PROD CH environment? The graph rebuild activity is estimated to take up to 2 hours to complete. During the process, Sitecore will back up the main index in the Elasticsearch deployment, as well as the

Validation Message in Sitecore Content Hub

Image
Problem Statement: Display the validation error message when the save button is clicked. While creating or updating entities in Sitecore Content Hub, we may have requirements to validate the author inputs based on a pre-defined condition, such as image extensions not being allowed except PNG and JPEG, checkboxes must be checked, or field values not being empty. In this blog, I am taking an example of a validation message that triggers if a field value is empty. Solution: To implement this functionality, you need to perform the following steps: Step 1: Create a Script, paste the following script, and check whether the field value is null or empty. You can modify it as per your requirements. See the blog post to Create a Script, Action, and Trigger in Sitecore Content Hub . Step 2: Create an Action and choose the above script. Step 3: Create a Trigger and choose the execution type as “In process”. Select the condition using the respective