Fixing Dynamics 365 Marketing Event Portal Loading Issues

I recently updated Dynamics 365 Marketing instance and installed the portal application.

Here are the steps I followed to deploy the sample event portal: Power Apps portal hosted custom event website (Dynamics 365 Marketing Developer Guide) | Microsoft Docs

I downloaded event portal zip file according to the application version and deployed it using DeployToDynamics365Instance.ps1 PowerShell script.

ISSUE

Portal loaded a blank page after the deployment. When I checked the browser console, it showed below error.

Refused to apply style from 'https://testorg.powerappsportals.com/eventmanagementapp/styles.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.testorg.powerappsportals.com/:1

Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/runtime.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1

Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/polyfills.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1

Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/scripts.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1

Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/main.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

ROOT CAUSE

Deployment script has not copied all required files for the specific D365 marketing application version. You can find the application version by going into https://make.powerapps.com > Select environment > Solutions page.

  1. Search for Marketing – Event Management and note down the application version.

HOW TO FIX

Manually deploy required sample event portal files for the marketing instance.

Here are the steps:

  1. Find relevant sample event portal files from : Manually overwriting a sample event website (Dynamics 365 Marketing Developer Guide) | Microsoft Docs (Sample event portal file version should match with the marketing app version)
  2. Save the zip file
  3. Download Configuration Migration Tool. Easy steps : Download tools from NuGet (Microsoft Dataverse) – Power Apps | Microsoft Docs ( I used PowerShell for this)
  4. Open the tool > Select “Import Data”
  5. Login to the organization and select environment
  6. Select zip file(#2) and load

Once loading is completed, reload the event portal and it should now load event portal homepage.



Categories: Dynamics 365

Tags: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

<span>%d</span> bloggers like this: