cancel
Showing results for 
Search instead for 
Did you mean: 

initial loading of meta data failed

04-24-2020 6:42 PM
1240 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hi

I am trying to fetch the sample odata content from ES5 data source.manifest.png

manifest1.pngdebug.pngcontroller.pngview.png. While running the application , I am getting " initial loading of metadata failed "error. Attached screen shots of neoapp.png my controller, view, manifest and neoapp code attached. Let me know if I need to perform any corrections in my code.

Thanks

Shankar

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor

Hi SHankar,

Why I asked that question is because the app looks little weird.. Usually when you generate, the odata data source and other stuff will be generated properly. But in your case the data source has destination reference in the URI, which shouldn't have as per my knowledge. Probably you have generated a normal ui5 project and added that code manually?

and one more thing is, if the data source is already in the manifest.json file, then you don';t need to instantiate the odata servivce manually, it's already instantiated and you can use it directly inside the xml view.

What I would suggest you to avoid these errors is to, generate a UI5 worklist templated based app and it asks for odata service, you can provide your service and then it automatically generates the app with a table included in the main view.

PS: Small tip, you can comment to provide more information and answer should be provided only if you have unique solution.

-Mahesh

0 Likes

Hi Mahesh,

Thanks for your response. Using Fiori Templates I am able to fetch data. I am trying with UI5 application template where I am manually modifying the manifest.json file.

I tried with below code and the also with the code which is there in my previous screenshot. Tried with commenting controller class also, but still getting the same error.

"dataSources":{
"ES5" :{
"uri":"/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
"type":"OData",
"settings" : {"odataVersion": "2.0" }

}
},

Thanks Shankar