Skip to Content
0
Sep 15, 2020 at 03:32 PM

Having trouble importing SAPUI5 code samples

266 Views

I'm sorry if this has been answered before but I couldn't find anything that helped. I am playing around with importing sample controls into SAP Web IDE (from https://sapui5.hana.ondemand.com/#/controls), but some of them end up being unsuccessful with the following message: "(import) Could not complete the import operation. See the Archive Import Troubleshooting Guide for more information." The troubleshooting guide was not helpful.

The import only works partially. I also tried importing the missing files one by one, after which running index.html ends up with a blank screen and the following error: "(uiadaptation) undefined is not an object (evaluating 'sUI5CurrentVersion.split)".

Sample for which the import works successfully: https://sapui5.hana.ondemand.com/#/entity/sap.m.IconTabBar/sample/sap.m.sample.IconTabBar

Sample for which the import is incomplete as described above: https://sapui5.hana.ondemand.com/#/entity/sap.uxap.ObjectPageLayout/sample/sap.uxap.sample.ObjectPageOnJSON

Please help. One thing I did notice in the case of ObjectPageLayout is that the manifest references views from subfolder "SharedBlocks" which do not exist in the project, nor are they in the sample .zip file. Could this be the problem? What is SharedBlocks?