I am using a web block from _CW module on a screen which is in end user application. I made a few changes in web block and now I get constant refresh dependency on the end user module.
Though I have refreshed the dependencies multiple times, I still get refresh icon for the UI flow in which the changed web block resides.
When I run the application, and it comes to the web block I get an error saying '<Module name>Model is not defined'. Could anyone please tell me why this is happening?
Thanks in advance!
HI Saurabh Bhandare
The error "Model is not defined" in OutSystems typically occurs when you are trying to reference a variable or entity that has not been defined or imported properly in your module.
To fix this error, you can follow these steps:
Check if the variable or entity you are trying to reference is defined in the same module or in a different module that has been properly imported. If it is defined in a different module, make sure that module has been added as a dependency and imported into your module.
Check if the variable or entity name is spelled correctly and that it is in the correct scope. For example, if you are trying to reference an entity in a screen action, make sure that the entity is defined in the same module as the screen.
If you are using a custom JavaScript function that references a variable or entity, make sure that the function is properly defined and that it is being called correctly.
If none of the above solutions work, try clearing your browser cache and rebuilding your module.
I also suggest you must check for circular dependency. May be that can help.
https://success.outsystems.com/documentation/best_practices/architecture/designing_the_architecture_of_your_outsystems_applications/validating_your_application_architecture/
Hi Saurabh,
Try clearing the browser cache and check for any typo. That's the most common reason why this could be happening.
Thanks!