web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Can't Update a javascript webresource

(0) ShareShare
ReportReport
Posted on by 30

4503.u.JPG

I am getting this error while trying to update a javascript webresource . I tried to clear the cache but no use.

I have the same question (0)
  • erhan.keskin Profile Picture
    2,253 on at

    Hi Fatma,

    - Is that a managed web resource?

    - The name of the web resource is changed by any tool?

    - Did you try another browser? For instance, it is Chrome i see, can you try IE.

    Regards,

  • Fatma_Hamed Profile Picture
    30 on at

    Hi Erhan,

    - The web resource is unmanaged.

    - The web resource's name didn't change.

    - I tried IE but I got the same error.

    Regards,

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Is this happening for all web resources ?  all users  or particular user?

    Not sure might be security issue , try to check with different System Administrator user. Also check if this happening for only one web resource ,is there any text format issue , try to paste one function in  the file to confirm.

    You can  wait for few minutes and test again , might be some other user doing publish all customization.

  • Fatma_Hamed Profile Picture
    30 on at

    Hi,

    This problem happens for one web resource and for all users. And I put one function in a separate file it worked well. I waited one day but no use the same problem appears each time I tried to update the script.

    Regards,

  • talk2.gauravb Profile Picture
    120 on at

    Hi,

    Try to restart CRM services if it doesnt help then next steps will be to update it via code.

    If you dont prefer to write code follow below steps:

    1> Add this webresource in a solution.

    2> Export the solution as unmanaged.

    3> Unzip the solution

    4> Change the code

    5> Zip all files and try to import the solution.

  • erhan.keskin Profile Picture
    2,253 on at

    I think you can try these;

    Option 1:

    • Add the wen resource into a new solution
    • Open the web resource through the solution and update it

    Option 2:

    • Copy and paste the code into a file, update the file with the change wanted
    • Upload the file by "Choose File" button as opposed to updating it by "Text Editor"

    Regards,

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Similar things happened for me as well  , suggesting you to paste your code in Visual Studio and then check whether your code is correct format or not . You can also share your code here to check , sometimes when you use some method or text which is Used in Dynamics internally you may get this kind of error.

  • Waqas Latif Profile Picture
    565 on at

    Hi All, was here any solution to this issue? I am facing on most of the OOB entity's javascript, i am not able to update the resource all of a sudden.

  • Fatma_Hamed Profile Picture
    30 on at

    Hi,

    You try the above solutions but for me the issue was solved after removing the webresource from all the solutions and just keeping it in the default one.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans