Script Errors in Dynamics 365 Portals App

Variations of this error were appearing throughout the entire application and I was certain it wasn’t meant to be behaving this way.  

Portals have been out for a while so I thought this was very strange and it was hindering my progress on the build out of this particular portal so I needed to get to the bottom of it. After digging through the contents of the script error, doing some googling, and finally some general troubleshooting with Chrome’s developer tools I noticed that specific scripts were being blocked from loading.

Why were these scripts being blocked?!

Turns out that the ad blocker I had installed on Google Chrome had been blocking the file from loading because it just blanket blocked anything suspected to be related to ads. Since Dynamics 365 Portals are built upon a product once known as ADX Studio (notice the “ad” in the name), these scripts had “adx” in their name which resulted in the ad blocker wrongly blocking these portal related scripts from loading.

By whitelisting Dynamics 365 in my ad blocker settings, these scripts were then allowed to load which resulted in the script error going away. Finally the Dynamics 365 Portals app was behaving as expected and I was able to continue building the portal.

author avatar
Nate Freidhoff