cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 ignores localUri setting for data source

0 Kudos
1,241

I have a UI5 app where, in the manifest.json, I have defined an OData data source with a settings/localUri directive that points to a local metadata file.

However, the UI5 framework ignores this directive and instead always fetches the metadata from the service root as defined in uri value of the data source definition.

Why is UI5 ignoring my localUri directive?

Here is a relevant (modified) excerpt from my manifest.json:

"dataSources": {
  "C4C_ODATAAPI": {
    "uri": "https://mynnnnnn.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/$metadata",
    "type": "OData",
    "settings": {
      "localUri": "localService/c4codataapi.edmx.xml"
    }
  }
}
View Entire Topic
manuelgf
Explorer
0 Kudos

Hi Martin,

Have you found a solution in order to get the application reading the metadata from a local file?

0 Kudos

Hello Manuel,

Unfortunately, I did not manage to resolve this issue. The app eventually went live without this issue being resolved, so I assume it is fetching the remote metadata each time.

Kind Regards,

Martin