Sitecore Glass Mapper Experience Editor Error -Sitecore 9.3

Jaya Jha
2 min readMay 13, 2020

--

Have you ever came across the error shown below then you landed on the right place :

Experience Editor View

Let’s understand what went wrong in this case -

As the error shown above clearly explains that its an issue with Glass Mapper as i am using Glass Mapper in my project and in my model class i have used Attribute Mapping as shown below :

Model Class

As per my controller logic i am able to get the above mapped field to my view on browser when i wanted to edit one of the field and went to access through experience editor i faced the error shown above

solution is simple as error itself explains its failed to resolve item as model class do not have Id attribute which mapped to sitecore item id .After i have added Id to my model class it works as expected :

Model Class After Adding ID

Here is the experience editor view after changing the model class :

Experience Editor View

Hope this will help someone.

Happy Learning…..

--

--

Jaya Jha
Jaya Jha

Written by Jaya Jha

I am a full-stack Web Application Developer with extensive experience in Sitecore Ecosystem .Passionate about exploring cutting edge technologies.

No responses yet