Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

javascript web resource not getting updated when importing solution

Posted on by 17

Bit of a strange one.

I've modified a web-resource java script file to update a function with a where condition. Import the file back into our dev environment, published and everything is working fine. Where condition works fine too. 

I've exported the solution as a managed solution and import into our UAT environment by selecting import package and then update. For whataever the reason when I do that, java script file isn't getting updated in UAT solution. 

As several other threads suggest, I've checked my customizations.xml file and it says "solutionaction="Added"  for the file I modified under  <formLibraries>

Can anyone suggest what is causing the javascript file not to get imported into UAT solution and guide me towards correct way to resolve this?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: javascript web resource not getting updated when importing solution

    By doing that you introduced the unmanaged layer. If you plan to maintain managed solutions deployment from dev to uat - this will cause you headache because this unmanaged layer will be always on top of your managed changes to webresource.

  • Suggested answer
    D365_83 Profile Picture
    D365_83 17 on at
    RE: javascript web resource not getting updated when importing solution

    Hi a33ik ,

    Thanks for this. I've double checked and my UAT has no unmanaged layers.

    But weirdly enough I sort of found a workaround to fix this. I swtiched to classic view on dynamics solutions page.

    Then went into the solution and to web-resources. (Go to Settings > Customizations > Default / Required solution.)

    In there it allows me to change the script using text editor or uploading a new file. I couldn't do this using new look. So I've changed the file and all is good.

    Wonder why I can't do the same using modern look.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: javascript web resource not getting updated when importing solution

    Hello,

    Double check that there was no unmanaged layers in your UAT environment - www.inogic.com/.../

    If there is a one you will have to remove it - rajsekhar311.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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

Product updates

Dynamics 365 release plans