Skip to Content

Json model file 404 Not Found

Hello,

I am new to sapui5. I have developed a small application with a odata model and a local json file as second model. The app works perfectly when i test from webide. But have problems when running the app from server after deployment. The odata model metadata loads correctly.The json file is not loaded from manifest.json and gives a 404 error while loading.The loadurl has /webapp/localModel/helper.json?sap-client=360. Any pointers to fix this issue..

Regards

Pradeep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jun 19, 2017 at 11:37 AM

    The path maybe ./localModel/helper.json. But, no need of client in that scenario as json is within the project.

    Check the namespace for app resources folder and reference accordingly.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 19, 2017 at 11:27 AM

    Any pointers to fix this..

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 19, 2017 at 02:47 PM

    I have adjusted the path in manifest.json and it works. Thanks..

    Add comment
    10|10000 characters needed characters exceeded