cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in loading Annotations file in SAP UI5 application using launchapd

11,306

Hello Team,

Kindly help me with resolving this technical error that i am facing.

I am working on SAP UI5 app development using the the List report template. I have managed to successfully deploy it and it is running perfectly when we run as SAP Fiori Launchpad Sandbox from Webide.

However, after configuring it as a tile in SAP fiori launchpad it gives the below error.

I am using UI annotations in SAP Webide and my backend is Odata service and not CDS.

Regards,

Mradul S

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Likes

I was able to resolve this issue by maintaining correct ID in target mapping . It should be same as namespace of component.js file

treee111
Explorer
0 Likes

I had the same problem and this answer brought the solution for my problem:

https://answers.sap.com/questions/13033405/fiori-list-report-object-page-not-loading-in-launc.html?c...

0 Likes

Hi,

I have the same issue. I was able to solve it by putting my annotations.xml file under webapp folder.

and I fix manifest.json

"type": "ODataAnnotation",
"uri": "annotations.xml",
"settings": {
"localUri": "annotations.xml"
}
}

Before I have it under path: localService/annotations.xml
In this case I get 404 on request for annotations.xml file, but only on deployed application.
Locally it runs normally.

It is very very strange that it cant resolve path ...

former_member441692
Participant
0 Likes

Hi,

I am also facing the same issue with application using annotation in ui5 app and not from backend. The app works fine from web ide but does not work from fiori launchpad after deploying in gateway.

Please reply if it was resolved.

Thanks!

former_member501093
Participant
0 Likes

Hi Mradul,

I hope you were able to solve your issue.

I was also facing a similar issue when deploying my Fiori App in Launchpad. My App is also using Local Annotations. My annotation file and i18n properties were not being read. On closer investigation by reading the console, I realized my app was not able to locate the Component File and giving error - No descriptor found,

I traced it back to SAP configurations in LPD_CUST and found out that there in the Additional Properties my Component Name was incorrect. I had entered SAP.UI5.Component = <appid>.Component. It should just be SAP.UI5.Component = <appid>

I have also noticed this during my research with Fiori Elements that the Component.js file is responsible for loading annotations and i18n settings. Please check this setting from your end if you are facing the same.

Happy Coding 🙂

Sauranil

0 Likes

Hi Sunil,

I am also facing the same issue, I could not load the annotation file created in webide. this file exist in BSP application in system. but its not found in the path in network tab:

File ui2/ushell/resources/~20180316143600~/z<bsp_proj_name>/annotations/annotation_po.xml NOT found!

please help me. how to get it loaded? does it need to be configured anywhere?

Regards,

Soumya

former_member501093
Participant
0 Likes

Hi Soumya,

Firstly please check if your Fiori app is able to read your Component file in Network Tab. If it is able to do so it will be able to read your annotations and i18n file as well. If it is not able to locate your Component file like as in my case, please check Component name in LPD_CUST settings. If it is able to read Component file but still not able to load annotations we need to check other settings.

Also as @Pavol Cina mentioned in his latest answer please check hierarchy. It should be webapp/annotations/annotation_po.xml

Regards,

Sauranil

former_member312987
Active Participant
0 Likes

Hi

It seems to be a problem with the path. Can you try changing the location as

Saludos

Raquel

0 Likes

Hi Raquel,

I have the main URI the same like that in which it calls the main Odata service. Also the annotations is in the annotations folder which is in Webapp folder.

Do you think still there can be any issue in the uri path?

Regards,

Mradul S

former_member312987
Active Participant
0 Likes

Can you check if it the corresponding BSP Application, the annotations are there.

Also, check the notes:

2826598

2489939

0 Likes

Hi Raquel,

My BSP application in SE80 shows me the annotation.xml file.

Also the notes i have gone through:-

2826598- This one seems not relevant as i have not created the annotations in metadata from SEGW but those are created in SAP Webide through annotation modeler.

2489939- This one cannot be implemented.

Thanks for your inputs but unfortunately the approach i have used is not the same.

former_member312987
Active Participant
0 Likes

Hi

Another points to check

1.Run the ABAP report REGENERATE_DDLX_RT_STATUS again and choose "Fix inconsistency"
2.Clear the DDIC annotation cache for the CDS view:

2.1.Start the ABAP transaction SDDLAR
2.2.Press the button "Annotation Cache Tools" > "Check Cache State"
2.3.Press the button "Cleanup Cache Entries" > "Execute Cleanup"

Saludos

Raquel

0 Likes

Hi Raqueel,

Thanks for your suggestion .Unfortunately, the approach i have used for annotation creation is not through CDS but only Odata service in the backend and UI annotations in the Webide.

However, for annotations i have managed to implement through MPC_EXT class and Define method.But still i am not able to get the data in my Fiori launchpad due to below errors:-

mvaibhav
Contributor
0 Likes

hi Mradul Shrivastav,

Try the following steps :

Delete the "dist" folder from your application.

Rebuild and Deploy the project. ("It will generate a new "dist" folder again)

Then refresh your browser and try accessing the app on launchpad.

It should resolve your issue.

Thanks,

Vaibhav

0 Likes

Thanks Vaibhav. I have tried the steps as you have explained.There were no deployment errors.

Unfortunately it is the same even after refreshing the browser cache memory and everything.The launchpad still not able to pick the annotations from UI for the metadata from Odata service.

mvaibhav
Contributor
0 Likes
Hi Mradul Shrivastav,During deployment, check in the Web IDE console if the annotations file is actually getting deployed or not ?If it is getting deployed , try running the following program from Se38

/UI5/APP_INDEX_CALCULATE

Specif the name of your app and execute the report.

Then try accessing the app


If the file is not getting deployed, try deleting the contents of BSP application by doing an empty deployment with an empty project. And then re-deploy your actual project with the content.


Thanks,

Vaibhav



former_member312987
Active Participant
0 Likes

Hi Mradul

Please check the note 2482699

Saludos

Raquel

0 Likes

Hi Raqueel,

Thanks, but I had gone through this note 2482699.

However, even after maintaining this in the tcode it doesn't work.

Actually the annotation Url for me is different so i guess the steps in the note might not be relevant.

will it involve change of the annotations path in the webapp and other folders in Webide as well?

junwu
SAP Champion
SAP Champion
0 Likes

what the error in network tab? how you configure your tile and target mapping?

0 Likes

Hi,

The tile configuration and target mapping and all seems fine because the same configuration works for any other application but without annotations.

Network tab shows the same annotations error.

junwu
SAP Champion
SAP Champion
0 Likes

put that url without sap-language=EN in your browser, check if it is loading.

0 Likes

Hi,

I tried without sap-language= EN and client still it is showing not found.

Also i checked the resources and i couldn't get the file. However it is present in Webide.

junwu
SAP Champion
SAP Champion
0 Likes

if you cannot find it in your bsp application(se80), then you have to check your deployment.

0 Likes

Hey,

Please find the manifest.json file that i am using. Attached in the screenshot.

You can see since this is the project created from template it has webapp folder. I have created the annotation folder and defined the annotations in .xml file.