Removing a field from Entity and View

Noticed that when I am removing a field from an Entity, the Studio is not removing the same from the view automatically unlike legacy version.

com.haulmont.cuba.core.global.DevelopmentException: View erp$AssetDepreciation/assetDepreciation-view definition error: property journal doesn't exist
 at com.haulmont.cuba.core.sys.AbstractViewRepository.loadView(AbstractViewRepository.java:580) ~[cuba-global-7.0.5.jar:7.0.5] 
at com.haulmont.cuba.core.sys.AbstractViewRepository.deployView(AbstractViewRepository.java:484) ~[cuba-global-7.0.5.jar:7.0.5] 
at com.haulmont.cuba.core.sys.AbstractViewRepository.init(AbstractViewRepository.java:114) ~[cuba-global-7.0.5.jar:7.0.5] 
at com.haulmont.cuba.core.sys.AbstractViewRepository.checkInitialized(AbstractViewRepository.java:86) ~[cuba-global-7.0.5.jar:7.0.5] 
at com.haulmont.cuba.core.sys.AbstractViewRepository.findView(AbstractViewRepository.java:236) ~[cuba-global-7.0.5.jar:7.0.5]

Hello.
Attributes should be removed from the view if they have been removed from the Entity. We have created a YouTrack issue.
For now, you can delete such fields by yourself.

1 Like