Skip to Content
0
Oct 06, 2020 at 10:03 PM

Fiori Elements Multitenant error ViewSwitchContainer/.fragment.xml could not be loaded

233 Views Last edit Oct 08, 2020 at 12:19 AM 3 rev

Hi,

We have a fiori elements app deployed in SCP and published in SCP Portal Central as a saas multitenant app.

When we launch the app it get stucked.

Logs in chrome console are:

2020-10-06 23:18:36.043935 [ 8] Removed attribute height - <ViewSwitchContainerItem height="{= ${visualizationDefinition>type} === 'Table' ? '100%' : undefined}"> sap.ui.core.util.XMLPreprocessor

2020-10-06 23:18:36.045000 [ 9] fragmentName = sap.fe.templates.controls.ViewSwitchContainer. - <core:Fragment fragmentName="sap.fe.templates.controls.ViewSwitchContainer.{visualizationDefinition>type}" type="XML"/> sap.ui.core.util.XMLPreprocessor

Error: resource sap/fe/templates/controls/ViewSwitchContainer/.fragment.xml could not be loaded

"visualizationDefinition>type" is empty and so the file name of the template is incomplete.

The same app is also deployed in SCP in one other subaccount as a simple no multitenant app and we have no problems.

In this case the logs are:

2020-10-06 23:42:11.670820 [ 8] height = 100% - <ViewSwitchContainerItem height="{= ${visualizationDefinition>type} === 'Table' ? '100%' : undefined}"> sap.ui.core.util.XMLPreprocessor

2020-10-06 23:42:11.672060 [ 9] fragmentName = sap.fe.templates.controls.ViewSwitchContainer.Table - <core:Fragment fragmentName="sap.fe.templates.controls.ViewSwitchContainer.{visualizationDefinition>type}" type="XML"/> sap.ui.core.util.XMLPreprocessor

Opening request #984 GET https://sapui5.hana.ondemand.com/resources/sap/fe/templates/controls/ViewSwitchContainer/Table.fragment.xml -

"visualizationDefinition>type" is "Table" and the file name of the template is correct.

The problem seems related to the model attribute "visualizationDefinition>type" without binding, it's used by:

https://sapui5.hana.ondemand.com/resources/sap/fe/templates/controls/ViewSwitchContainer/ViewSwitchContainer.fragment.xml

Has anyone run into the same problem?

Thanks,

Sam