Browser Screen closing error in legacy screen after migration to V7

For some screen I am getting this error when I want to close it:

    java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
    	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    	at java.util.ArrayList.get(ArrayList.java:433)
    	at com.haulmont.cuba.web.gui.components.WebAbstractDataGrid.isCommonDataGridSettingsChanged(WebAbstractDataGrid.java:2255)
    	at com.haulmont.cuba.web.gui.components.WebAbstractDataGrid.saveSettings(WebAbstractDataGrid.java:2201)
    	at com.haulmont.cuba.gui.screen.ScreenSettings.lambda$saveSettings$1(ScreenSettings.java:91)
    	at com.haulmont.cuba.gui.ComponentsHelper.__walkComponents(ComponentsHelper.java:299)
    	at com.haulmont.cuba.gui.ComponentsHelper.walkComponents(ComponentsHelper.java:282)
    	at com.haulmont.cuba.gui.screen.ScreenSettings.saveSettings(ScreenSettings.java:83)
    	at com.haulmont.cuba.gui.screen.Screen.saveSettings(Screen.java:421)
    	at com.haulmont.cuba.gui.components.AbstractWindow.saveSettings(AbstractWindow.java:694)
    	at com.haulmont.cuba.gui.screen.Screen.close(Screen.java:332)
    	at com.haulmont.cuba.web.sys.WebScreens$TabCloseTask.run(WebScreens.java:1791)
    	at com.haulmont.cuba.web.sys.WebScreens.handleTabWindowClose(WebScreens.java:1770)
    	at com.haulmont.cuba.web.widgets.CubaMainTabSheet.lambda$new$f77d23a5$1(CubaMainTabSheet.java:126)
    	at com.vaadin.ui.TabSheet$TabsheetServerRpcImpl.closeTab(TabSheet.java:99)

Figured out workaround solution, when I remove the tenant ID from the browser-table, this error has gone away. But if I want to keep the tenant Id column displayed, how can we get rid of this error?

Hi!

Thank you for reporting a problem. It is possible to workaround it in two ways:

  1. In the Help → Settings you can remove all saved settings of screens.
  2. You can manually remove saved settings fot certain screen. In the Entity Inspector select sec$UserSetting entity and remove your settings.

See issue: cuba-platform/cuba#2099