Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Error When trying to Edit Java Script

Posted on by Microsoft Employee

Within the Web Resources, when I open one of the js libraries and make any changes (even adding a single space) I get the following error:

"Error

An error has occurred.

Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support."

If I access the same library via the form, and add a space, I get the following error:

"Record Is Unavailable

The requested record was not found or you do not have sufficient permissions to view it. If you contact support, please provide the technical details."

I tried the following:

  • Clearing the cache in chrome and tried IE as well, both with the same errors.
  • Pasting in an older working version of the code. Same errors.
  • Opening and editing a completely separate library, no issues what so ever.  

So it seems to be specific to this library, or some of the meta data connected to it?  I am new to js and Dynamics, so I am kinda in the dark and am using a preexisting solution, so I don't know all the specifics that went into setting up the js.

 

Also, this issues started a couple hours after I had tried removing a function from the library, but I'm not sure if that is actually connected, or just coincidental. 

Any help or guidance is appreciated. Thanks. 

  • Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: Error When trying to Edit Java Script

    Great!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error When trying to Edit Java Script

    I did something similar.  I exported a solution with the related entity, then saved the code from the troubled library. I removed the library from the entity it was related to and deleted the troublesome library. I then created a new library with the same name as the old one, and re-imported the solution with that entity and everything is working properly now. 

  • Suggested answer
    Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: Error When trying to Edit Java Script

    Try do one thing. Is there any possibility to create another library(another js with the same code) and add a method call from the form and see. Just to make sure the code is working fine and existing js(component) has an issue.

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 Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans