Today, when I was Testing a feature in the Test Environment, found the below strange error in the Test environment and in the Dev environment there is no such issue in the code.
ReferenceError: Web resource method does not exist: XYZ.Case.OnLoad. However the closest object we found is XYZ.Case that contains these properties: GetEnvironmentVariableValue,SwitchBPF,OnPostSave. Please verify this object is not corrupt and is not an object of the same name defined elsewhere, such as another script.
at y._handleMethodNotExistError (https://Xyz-cep-test.crm6.dynamics.com/uclient/scripts/app.js?v=1.4.6623-2310.3:14:1218209)
at y.execute (https://xyz-ce-test.crm6.dynamics.com/uclient/scripts/app.js?v=1.4.6623-2310.3:14:1216797)
at https://xyz-ce-test.crm6.dynamics.com/uclient/scripts/app.js?v=1.4.6623-2310.3:4:108242
at i (https://xyz-ce-test.crm6.dynamics.com/uclient/scripts/app.js?v=1.4.6623-2310.3:14:102724)
at ne._executeIndividualEvent (