Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dependency error importing solution - Goal_main_system_library.js does not exist

Posted on by 495

Hello all,

I have a strange issue cropping up when I try to import a solution. I was attempting to copy a default solution from a sandbox to a production instance, and got the following error on the final dependency check:

The dependent component WebResource (Id=Goal_main_system_library.js) does not exist.  Failure trying to associate it with SystemForm (Id=a091897e-d685-4487-b61c-98158391015e) as a dependency. Missing dependency lookup type = PrimaryNameLookup.

I checked the web form in question (the Goals web form, managed out of the box) and didn't find the Goal_main_system_library.js anywhere, nor is it in the web resources. I re-exported the solution I tried importing the default solution back into sandbox and got the same dependency error.

I do have one unmanaged solution applied with custom entities and some custom fields, but no web resources of any kind and no modifications to the Goal entity. Looking the XML, I can see the references to Goal_main_system_library.js  but can't for the life of me find them in CRM to delete them. I also can't find out what solution includes the Goal_main_system_library.js so I can put it back in.

Any suggestions on where to look? D365 online, 9.0.2. 

EDIT: I did find the web resource listed on the Form: Dependencies list as AppCommon/Goal/Goal_main_system_library.js and when I click on it, it opens, as well and comes up when I browse to https://*.crm.dynamics.com//webresources/AppCommon/Goal/Goal_main_system_library.js. But it's not showing up in the Default Solution under Web Resources when I list All.

EDIT 2: I reset the sandbox to stock, exported the default solution and re-imported it right back in and got the dependency error... looking like a bug of some kind.

EDIT 3: Verified as a bug by Microsoft. 

Thanks

Rob

*This post is locked for comments

  • ALTOSHAAM Profile Picture
    ALTOSHAAM 180 on at
    RE: Dependency error importing solution - Goal_main_system_library.js does not exist

    Faced the same for D365 on-premise, 9.0.9.4.

    Tried to update source environment to 9.0.10.10, but with no luck - update fails.

    Waiting for next patch from MS won't work for me.

    But editing customizations.xml file hepled.

    One note here - once updated and zipped back, you can upload modified solution back to the source environment.

    Thus we can ensure, that any further solution export won't contain broken WebResource references.

    Approach with updating the DB directly seems to be an overkill here.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dependency error importing solution - Goal_main_system_library.js does not exist

    I managed to import the default solution with the following workaround (completely unsupported, but it works):

    -1) Decompress the .zip solution file

    -2) Open the customizations.xml and modify it. You have to find and erase the following lines:

      <internaljscriptfile src="$webresource:Goal_main_system_library.js" />

      <internaljscriptfile src="$webresource:Metric_main_system_library.js" />

    - 3) Create the .zip again with the modified file and import the solution.

    It seems that for Metric and Goal two javascript references where created for the default solution: the correct one and another annoying one that makes the import not possible. If you pay attention, you can see the two correct libraries referenced next to the wrong ones:

    --For Goal

     <internalresources>

     <clientincludes>

       <internaljscriptfile src="$webresource:Goal_main_system_library.js" />

       <internaljscriptfile src="$webresource:AppCommon/Goal/Goal_main_system_library.js" />

     </clientincludes>

    </internalresources>

    --For Metric

    <clientresources>

                    <internalresources>

                      <clientincludes>

                        <internaljscriptfile src="$webresource:Metric_main_system_library.js" />

                        <internaljscriptfile src="$webresource:AppCommon/Metric/Metric_main_system_library.js" />

                      </clientincludes>

                    </internalresources>

                  </clientresources>

  • ISMAIL TUTUMLUER Profile Picture
    ISMAIL TUTUMLUER 399 on at
    RE: Dependency error importing solution - Goal_main_system_library.js does not exist

    Hello,

    I receive same error on Dynamics 365 onpremise(9.0.6.9).

    Be careful It's an unsupported solution for Dynamics 365 onpremise.

    I insert Goal_main_system_library.js. with any name from webresources than I change some informations with TSQL like below example.

    Update WebResourceBase

    Set IsManaged= 1, WebResourceType= 3, ComponentState= 0, SupportingSolutionId ='00000000-0000-0000-0000-000000000000',Name='Goal_main_system_library.js', DisplayName='Goal_main',IsHidden=1,CanBeDeleted=0,Description='Default Form System Library',

    SolutionId='FD140AAD-4DF4-11DD-BD17-0019B9312238',LanguageCode= null,IntroducedVersion ='5.0.0.0', IsEnabledForMobileClient= 0, DependencyXml= null, IsAvailableForMobileOffline= 0, ContentJson= 0

    where WebResourceIdUnique='59675783-0883-4A39-A5B3-0B1D49008B58'

    The error is disappeared on the goal form

  • Verified answer
    Rob Landolt Profile Picture
    Rob Landolt 495 on at
    RE: Dependency error importing solution - Goal_main_system_library.js does not exist

    In case anyone else runs into this issue, Microsoft support got back to me and said it's a known issue and will be resolved in an upcoming update. The workaround is to manually create solutions instead of exporting default until it's fixed.

  • Rob Landolt Profile Picture
    Rob Landolt 495 on at
    RE: Dependency error importing solution - Goal_main_system_library.js does not exist

    Welp fired off a support request to MS...  I wasn't having this problem a couple weeks ago, and it looks like my orgs have the .449 update. Might be coincidence, might not... We'll see what they say.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans