An error occurred in Sitecore Experience Editor

While working on Sitecore Site — I faced an error for few pages in the experience editor. As always quickly I tried to search on google to find the solution, but I didn’t found any solution related to an error. And the reason is — The error that I was getting was totally different on the browser while the actual problem was something else.

This was surprising. Many blogs I referred but none of them was specific to this issue.

Then I tried to remove the layouts one by one by replacing the wrong placeholder-key, that too didn’t worked. I thought there might be an issue with this specific item or template. But NO, the issue was, I was having few renderings which were not required and having the different placeholder-key which didn’t exist in any of the other renderings.