In our solution we have custom .js files for several forms (account form and some custom entities’ forms).
They work fine on our dev environment.
When importing the dev customizations to our QA environment, we receive error messages on the account, and several (but not all) of the custom entities’ forms;
When viewing the trace log on the crm server, we see the following exception:
MSCRM Error Report:
——————————————————————————————————– Error: Could not find a web resource with name account.js. Error
Number: 0x80040217 Error Message: Could not find a web resource with
name account.js. Error Details: Could not find a web resource with
name account.js. Source File: Not available Line Number: Not available
Request URL:
https://server:444/Handlers/WebResource.ashx?name=account.js&ver=935169123
Stack Trace Info: [CrmException: Could not find a web resource with
name account.js.] at
Microsoft.Crm.Application.Components.Handlers.WebResource.RetrieveWebResource(String
webResourceName, String preview) at
Microsoft.Crm.Application.Components.Handlers.WebResource.ProcessRequestInternal(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
The custom script itself, however, is loaded and works correctly.
Removing / deleting the custom scripts or re-importing the customizations have not fixed this issue.
Anyone got any idea?
Looks like you are trying to call a webresource by the name “account.js” that doesnt exist. If you are trying to call it from your customizations file from some customRule in enableRule or something like that, then you need to call it by its name and not by its display name, for instance if the name is “new_/scripts/account.js then your call should be: