“Sorry, something went wrong” in SharePoint due to the `ID` parameter in URL

Anton Ivanov
Aug 9, 2017 · 1 min read

Weird bug in SharePoint. It turns out that you cannot use the word id as a URL parameter for a SharePoint page. This will randomly result in the error message:

Sorry, something went wrong. An unexpected error has occurred.

In other words, you cannot use an URL /sites/aia/Pages/Opportunities.aspx?id=11.

The solution to the problem is simply to use another name for the parameter, for example ?OpportunityID=11.

Anton Ivanov

Written by

Developer in Hong Kong

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade