Search code examples
sapui5sap-web-idesap-business-application-studio

Property "preload" is not allowed?


I searched around but didn't find anything..

{
  "_version": "1.1.0",
  "sap.app": {
    "_version": "1.1.0",
    "id": "xxx",
    "...": "..."
  },
  "sap.ui": {
    "_version": "1.1.0",
    "...": "..."
  },
  "sap.ui5": {
    "_version": "1.1.0",
    "models": {
      "": {
        "type": "sap.ui.model.odata.v2.ODataModel",
        "settings": {
          "...": "..."
        },
        "dataSource": "xxx",
        "preload": true
      }
    },
    "...": "..."
  },      
  "...": "...",
  "sap.platform.hcp": {
    "uri": "webapp",
    "_version": "1.1.0"
  }
}

That's my manifest. I always get an error on "preload": true in Web IDE saying:

Property preload is not allowed.

I read in some sites that it's because my version is maybe too old? And I don't really know how to change the version.

Is there a way to update the version? It's a cloud app and it stays on the cloud..


Solution

    1. Change the value of the root _version to something higher than 1.3.0 according to the table AppDescriptor Release and SAPUI5 Version.
    2. Remove all other _versions in namespaces such as sap.app, sap.ui5, ….
    3. Reload the IDE.

    Manifest model preload is available only as of UI5 version 1.38.01. And since 1.38 corresponds to the app descriptor version 1.4.0, Web IDE complains that preload is an unknown setting in 1.1.0.