Resolving Sitecore Runtime Errors: A Step-by-Step Guide

Hello Folks ,

Some issues have solutions, but tracing them can take a lot of time. Recently, we found a solution to one such issue, and I’ll be discussing it in this blog.

Issue

Let’s understand issue and then we look into tracing .

Sitecore has different types of roles for managing content in CMS , you can read more about that here .

We have used AUTHOR role for managing content item and applied some condition on that according to our requirement .

We have applied only read action on our partial and page design , only items under DATA is editable .

So when ever we are saving any data it was giving runtime error

As we encountered this error in the DEV environment, we couldn’t identify the exact cause. To get more insights for debugging, we attempted to reproduce the error locally.

Issue Tracing

When we tried to save data locally, we encountered the same issue. Here’s what the error looked like.

We then began breaking down the issue into several parts. Not all data sources were affected by this issue—only some data sources with the same template experienced it.

We discovered that even though the templates were the same, some data sources did not have this issue.

We looked for what was common in all the data sources with the error. We found that they were all used in a partial design.

We had only set READ access on the partial design, so it couldn’t write. Once we removed the data source from the partial design, it started working correctly without any issues

When we clicked the save button, it first called the save pipeline. Then, it tried to write to the partial design as well. At that point, an error would occur, but the save would still complete successfully. But as it was giving error so we thought it was due to partial design .

Solution

As we discussed, the issue was due to the partial design. So, we decided to add WRITE access to the partial design, and—bang! The issue was resolved, and everything started working.

Sometimes solution is simple but tracing this issue take much time .

Conclusion

In conclusion, this issue shows that sometimes the solution is simple, but finding the cause can take time.

We carefully checked everything. We focused on access settings. We figured out that the problem was caused by not having WRITE access on the partial design.

Once we added the correct access, everything worked as expected. This experience reminds us how important it is to carefully troubleshoot and test when dealing with complex systems like Sitecore.

Last but not the least thank you Akshay Barve for helping me to troubleshoot this issue

I hope this helps you solve similar issues faster and with less frustration.

Happy coding 😊.

Leave a comment

I’m Garima

a Sitecore Developer with 8 years of overall experience, with the last 5 years focused deeply on Sitecore. I’m certified in Sitecore 9, Sitecore 10, Sitecore XM Cloud and Sitecore AI CMS for Developers, and bring hands-on expertise across Sitecore CDP, Content Hub, and personalization strategies — especially in headless architectures.

My tech stack includes strong experience with .NET, JavaScript, React, and Next.js, allowing me to build scalable and high-performing digital experiences.

🧠 Currently Learning:
I’m expanding my skill set in the areas of Generative AI, Google Cloud, and Machine Learning fundamentals — with a focus on how these technologies can power future-ready personalization and intelligent content delivery in composable DXP solutions.

🔗 Always eager to learn, adapt, and collaborate — building smarter digital solutions one sprint at a time.

Google Cloud Logo

My Google Cloud Learning Journey 🚀

I’m actively learning and earning certifications through Google Cloud Skills Boost — focused on Generative AI, Cloud, and more!

🔗 View My Cloud Skills Boost Profile

Archives

Recent Posts

Let’s connect

AI architecture caching CDP cli container containers Data Source debug developer devops docker docker desktop droplink droptree Error GIT github headless javascript leadership mentor mentorship multilist NEXT partial design path personalize powershell programming publishing Push REact runtime error services Sitecore Sitecore CDP sitecore community SUGKolkata technology treelist validation validation rules web-development xm-cloud