docs

View or Controller Extension is Not Loaded

You have extended a view or controller by defining sap.ui5/extends/extensions/sap.ui.controllerExtensions or sap.ui5/extends/extensions/sap.ui.viewExtensions in your Component’s manifest.json, but at runtime neither are loaded.


Potential Root Causes

There are mainly two possible reasons why you might encounter this scenario:


Resolution


Wrong names and typos

You can easily resolve the first possibility why an extension is not loaded and applied by checking for the correct spelling of view-, fragment- and controller names in your manifest. The framework can only find an extension if the artifact names are correctly maintained in the manifest.json.

Note:

The framework does not validate the existence of artifacts mentioned in sap.ui5/extends/extensions/. Therefore, no error will be shown if a name is misspelled.


Missing owner component

The second possibility is also easily solvable by making sure that your views, fragments, or controllers are created in the correct owner-component scope.

The owner component is the (UI)Component which “owns” a view, fragment, or controller. It must provide the extension information in its manifest.json.

For a detailed explanation of the owner-component concept and some coding samples, see the Related Information.

Related Information

The Owner Component

sap.ui.core.Component.getOwnerComponentFor

sap.ui.core.Component.prototype.runAsOwner

sap.ui.core.Component.getOwnerIdFor