Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Version 9 - Script error on leads

(0) ShareShare
ReportReport
Posted on by 321

My Sandbox just updated to version 9. Every time I open a lead or create a lead, I get an error that MarketingSales is undefined. A dev I work with said this is a known issue with the update. Anyone here have any luck resolving it?

I did find this blog post but I'm unsure how to follow his instructions. Any other thoughts?

https://aslamsumayya.wordpress.com/2018/03/15/dynamics-365-crm-how-to-resolve-script-error-while-saving-leads/

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Version 9 - Script error on leads

    Create a new solution, add the Lead entity with just the Lead Main form, export the solution unmanaged, then edit manually the customization.xml file, adding the reference to the script that generates the error. The reference should be added in the internalresources section and the end result should look like this:

    <internalresources>
    <clientincludes>
    <internaljscriptfile src="$webresource:LeadManagement/Lead/Lead_main_system_library.js" />
    <internaljscriptfile src="$webresource:MarketingSales/Lead/Lead_main_system_library.js" />
    </clientincludes>
    </internalresources>

     

    Bring back the manually modified customization.xml into the solution and import it in. The error should be gone.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Version 9 - Script error on leads

    I think this is still a known issue. Saw a few posts regarding this a few days ago.

    You can ask your dev to help you with the resolution above, if you are uncomfortable with this change or have not done this previously..

    I have not tested this resolution, but if it works, should be simple enough.

    Hope this helps.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans