SharePoint Online - Provisioning Microsoft 365 Learning Pathways Error

This article talks about the resolution of provisioning issues with Microsoft Learning pathways site.

Today, one of our customers was having an issue with the  Microsoft 365 Learning Pathways site.
 

Problem

 
The global admin successfully provisioned the learning site and handed it over to the customer. But when users browsed the site, the home page was loading without any issue but when they clicked on any other link, they got the error: “Something went wrong”.
 
SharePoint Online - Provisioning Microsoft 365 Learning Pathways Error
 
And here is the detailed error.
 
Error
 
Something went wrong
 
If the problem persists, contact the site administrator and give them the information in Technical Details.
 
Technical Details
 
[SPLoaderError.loadComponentError]:
***Failed to load component “141d4ab7-b6ca-4bf4-ac59-25b7bf93642d” (CustomLearningWebPart). Original error: ***Failed to load URL ‘https://publiccdn.sharepointonline.com/krosfarm.sharepoint.com/sites/appcatalog/ClientSideAssets/26c9cd9f-db62-49b1-b102-7f0dad281ea0/v2-customlearningwebpartstrings_en-us_550d233e4c4642a78860ff6ed0424b18.js’ for resource ‘CustomLearningWebPartStrings’ in component ‘141d4ab7-b6ca-4bf4-ac59-25b7bf93642d’ (CustomLearningWebPart). There was a network problem. This may be a problem with a HTTPS certificate. Make sure you have the right certificate.
***INNERERROR:
***Failed to load URL ‘https://publiccdn.sharepointonline.com/krosfarm.sharepoint.com/sites/appcatalog/ClientSideAssets/26c9cd9f-db62-49b1-b102-7f0dad281ea0/v2-customlearningwebpartstrings_en-us_550d233e4c4642a78860ff6ed0424b18.js’ for resource ‘CustomLearningWebPartStrings’ in component ‘141d4ab7-b6ca-4bf4-ac59-25b7bf93642d’ (CustomLearningWebPart). There was a network problem. This may be a problem with a HTTPS certificate. Make sure you have the right certificate.
***CALLSTACK:
Error
at t._generateErrorStackForIE (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:870:16404 )
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:870:15940 )
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:1493:21274 )
at e.buildErrorWithVerboseLog (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:1493:16198 )
at e.buildLoadComponentError (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:1493:12223 )
at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:1493:61761 )
at L (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:8:2116 )
at T (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:8:2232 )
at O (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:8:2026 )
at g (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-06-14.010/sp-pages-assembly_en-us_6b7c467dac13b54cb9ff078c773aa7b5.js:8:1608 )


Troubleshooting

 
It is hard to decide from where to start, so I pick through the error details. As per the error, learning site downloading the CDN assets from the URL “Failed to load URL ‘https://publiccdn.sharepointonline.com/krosfarm.sharepoint.com/sites/appcatalog/ClientSideAssets/26c9cd9f-db62-49b1-b102-7f0dad281ea0/v2-customlearningwebpartstrings_en-us_550d233e4c4642a78860ff6ed0424b18.js” but encountering the certificate issue “There was a network problem. This may be a problem with an HTTPS certificate. Make sure you have the right certificate.“. I checked a couple of things to make sure there is no issue.
  1. Make sure there is no proxy blocking this download
  2. Also, make sure no firewall is blocking the URL.
  3. As per Office 365 URLs and IP address ranges , I made sure the all the URLs & ports were open. Check # 37 under SharePoint and OnDrive.
There was nothing I could find which can be causing this issue. So I moved one step back and checked for the Provisioning requirements.

Here are the pre-requisite for provisioning the learning site.
  1. User provisioning the learning site should be a Global Tenant Admin.
  2. An app catalog must be provisioned and configured
  3. The user who is provisioning the pathways site should be in the Site Collection of the App catalog site.
After closely checking the pre-requisite, I found that my account is global admin but not the site collection admin of the App Catalog. This is the cause of the error, as during the provisioning process, due to lack of permission, it failed to register the app in the app catalog. The error is kind of misleading.
 

Resolution

 
To resolve the issue, I have performed the below steps:
  • Delete the current Learning Pathways site collection from SharePoint Tenant administration site.
  • Remove it from the Admin recycle bin as well.
  • Wait for 10 to 20 mins before moving to the next step.
  • Re-provision the Microsoft Learning Pathways Site but make sure of this:
    • User must be Global Tenant Admin
    • App Catalog configured
    • User also is Site collection admin of the App Catalog.
Boom, after provisioning again, the site is working as expected.
 
SharePoint Online - Provisioning Microsoft 365 Learning Pathways Error
Thank you guys for reading it. Until next time, enjoy and keep SharePointing.