Have you ever came across the error shown below then you landed on the right place :
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 :
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 :
Here is the experience editor view after changing the model class :
Hope this will help someone.
Happy Learning…..