Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Could not load content for (JS/TS)

Posted on by 25
Hi Experts,
 
We have a custom button on a Sub-Grid. On click it calls a JavaScript function (RemoveFromEventSessionGroup) that removes the selected record from the Sub-grid. This functionality was created by someone who already left the company.
 
When I tried to add a breakpoint to the script, it opened another tab with this error
 
Could not load content for https://xxx.crm11.dynamics.com/%7b638427613960000172%7d/webresources/ccl1011_/Marketing/Session.ts (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)
 
The Webresource is JavaScript but created as a TypeScript (Sorry I'm not that knowledgeable of TypeScript)
 
Below is the screenshot.
 
//
 
This is the error whenever I add breakpoint on the function.
//
 
What I have done so far is I removed the JavaScript function on the button then published. Verified that the function was removed.
Then I added it again. Did not fix the error.
 
 
Looking for advice on how to fix this error.
 
Thanks
  • Suggested answer
    Mohamed GRAIB Profile Picture
    Mohamed GRAIB 2,498 Super User 2024 Season 2 on at
    Could not load content for (JS/TS)
    Hi, 
     
    Resource names in Dynamics 365 are case-sensitive. I think that you have a problem in between Session and session. 
     
    Try to edit all session by Session. 
     
    Let us know if that's resolve your problem. 
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,302 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans