![](https://arunpotti.files.wordpress.com/2023/01/dataverse.png?w=1024&resize=838%2C282)
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 (
Source link
More About This Author
![](https://i0.wp.com/365community.online/wp-content/uploads/nsl_avatars/a2e17abf95b0195b8693d17f58f418f1.png?fit=96%2C96&ssl=1)
Array
Dyn365CE26 July 2024API playground feature not available in Dataverse Accelerator App?
Dyn365CE25 July 2024How to Explore and test Dataverse in the Web API playground (preview)?
Dyn365CE20 July 2024Web resource method does not exist in Dynamics 365 CE
Dyn365CE19 July 2024How to get Environment Variable Value in Dynamics 365 CE using JavaScript?