Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error while saving form customizations

Posted on by Microsoft Employee

Hi experts,

Im getting following error while and it is preventing me to make ay changes to the form while saving:

Screen-Shot-2018_2D00_05_2D00_04-at-1.11.15-PM.png

Screen-Shot-2018_2D00_05_2D00_04-at-1.11.27-PM.png

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The dependent component WebResource (Id=iv_/scripts/notify_loader.js) does not exist.  Failure trying to associate it with SystemForm (Id=0e30a90f-cc91-4854-b27c-7374acc5cf26) as a dependency. Missing dependency lookup type = PrimaryNameLookup.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>f880d555-2c9f-418e-94f1-7f1ec4a8a3d1</ActivityId>
  <ErrorCode>-2147160010</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Api/PostPipeline</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: The dependent component WebResource (Id=iv_/scripts/notify_loader.js) does not exist.  Failure trying to associate it with SystemForm (Id=0e30a90f-cc91-4854-b27c-7374acc5cf26) as a dependency. Missing dependency lookup type = PrimaryNameLookup.
   at Microsoft.Crm.ObjectModel.InvalidDependencyService.CreateInvalidDependency(Guid existingComponentId, Int32 existingComponentType, DependencyTypes dependencyType, MissingDependencyLookupType lookupType, Object lookupInfo, Int32 missingComponentType, ExistingComponentState state, InvalidDependencyExceptionOption exceptionOption, BusinessEntityCollection previousInvalidDependencies, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyCalculator.CreateInvalidAncestorDependency(DependencyTypes dependencyType, MissingDependencyLookupType lookupType, Object lookupInfo, Int32 componentType, InvalidDependencyExceptionOption exceptionOption, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.JavaScriptLibraryDependencyCalculator.GetDependentComponentInfoByNode(String formXml, String nodeName, String attributeName, List`1 allowedInvalidDependencies, Guid formId, DependencyTypes type, CreateInvalidAncestorDependencyHandler invalidAncestorHandler, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.JavaScriptLibraryDependencyCalculator.GetDependentComponentInfo(String formXml, DependencyTypes type, List`1 allowedInvalidDependencies, Guid existingComponentId, CreateInvalidAncestorDependencyHandler invalidAncestorHandler, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.SystemFormDependencyCalculator.SetFormLibrariesDependencies(String formXml, DependencyTypes type, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.SystemFormDependencyCalculator.SetFormDependencies(BusinessEntity entity, DependencyTypes type, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyCalculatorBase.DetermineAllDependencies(ICollection`1 records, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyHelperBase.UpdateDependencies(ExecutionContext context)
   at Microsoft.Crm.Dependency.ComponentCollector.UpdateComponentDependencies(Dictionary`2 recordsByComponentType, ExecutionContext context)
   at Microsoft.Crm.Dependency.ComponentCollector.ProcessRecords(ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.ExecutionContext.ProcessDependencies(FlushCacheOption option, CreateNewCollectorOption createOption)
   at Microsoft.Crm.BusinessEntities.ExecutionContext.CommitTransaction(ProcessDependenciesOption option, FlushCacheOption flushOption)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, Guid callerRegardingObjectId, Int32 invocationSource, Version endpointVersion, OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.DispatchRequest(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest, SdkResponseDescription responseDescription, SdkPerformanceCounterContext sdkPerformanceCounterContext)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentationOperation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.&lt;&gt;c__DisplayClass17_0.&lt;ExecuteRequest&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">00000000-0000-0000-0000-000000000000</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiDepthKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiActivityIdKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">f880d555-2c9f-418e-94f1-7f1ec4a8a3d1</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>0</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">iv_/scripts/notify_loader.js</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>1</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">WebResource</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>2</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">dependent</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>3</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">SystemForm</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>4</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0e30a90f-cc91-4854-b27c-7374acc5cf26</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>5</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">PrimaryNameLookup</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>The dependent component WebResource (Id=iv_/scripts/notify_loader.js) does not exist.  Failure trying to associate it with SystemForm (Id=0e30a90f-cc91-4854-b27c-7374acc5cf26) as a dependency. Missing dependency lookup type = PrimaryNameLookup.</Message>
  <Timestamp>2018-05-04T07:41:08.2467945Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>


Please help me. I have no idea what's causing this. 

Thanks,

Jon

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Error while saving form customizations

    Hi Jon ,

    This is internal validation error  when you are saving the forms its check all the format of the code in your library you added onload and onsave event  , may be some tag or keywords which can be overwrite the internal function , so its unable to change those tag or keywords in your format and showing error .

    I am pretty much sure if you change the code and add one simple function in notify_leader.js it will work.

  • Suggested answer
    Dynamics_Alok Profile Picture
    Dynamics_Alok 1,746 on at
    RE: Error while saving form customizations

    We are getting error on Save of System Form and it is Server Side error so I think issue is not related to notify_leader.js code .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error while saving form customizations

    Hi Rawish, Goutam,

    That worked. I just removed the library and even handler. I have no idea how it got added there.

    Thank you!

    Jon

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Error while saving form customizations

    Hi Jon ,

    Remove the notify_leader.js from onload event  and try.

    And also please share the code of notify_leader.js file .

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Error while saving form customizations

    Hi Jon,

    Looks like the function which is being called doesnt not have the corresponding web resource added under library. Confirm that? May be remove it and add again if there.

  • Suggested answer
    Dynamics_Alok Profile Picture
    Dynamics_Alok 1,746 on at
    RE: Error while saving form customizations

    Can you check for Lookup field PrimaryNameLookup .It's relationship  may be corrupted .

    First Check whether it is available or not then find out about its dependencies .

    Shortcut to  resolve this issue is to create a Solution with same entity form, Unzip Solution file and remove dependencies for the same JS and Lookup and import it again .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error while saving form customizations

    This script is empty but there is a function being called which I think is the problem. iv_/scripts/notify_loader.js

    Screen-Shot-2018_2D00_05_2D00_04-at-1.22.23-PM.png

    How can I fix this?

    Thanks,

    Jon

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans