cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating catalog: "Cannot set property '$selected' of undefined"

0 Kudos

Hi all,

I'm new in Fiori, I was setting up the fiori launchpad from help portal (Setting Up the Launchpad - User Interface Add-On for SAP NetWeaver - SAP Library).

When I using Launchpad Designer to create catalog, it responses with "Cannot set property '$selected' of undefined".  I'm not sure which configuration is wrong.

Is there anybody can tell me where I am wrong, or how can I check this problem?

Thank you.

I configured on abap server,

The ui5 version is 1.28.13.

sap_basis 740

Actived odata service :

/UI2/PAGE_BUILDER_CONF

/UI2/PAGE_BUILDER_CUST

/UI2/PAGE_BUILDER_PERS

/UI2/TRANSPORT

/UI2/INTEROP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We are having the same SAP_UI version (SP14), and got the issue error, seems like a bug...

former_member572871
Discoverer
0 Kudos

Hi Masa and Sarabjeet,

We are on EHP7 SP12 and SAP_UI SP14 and get the same error:

  "Unable to set property '$selected' of undefined or null reference"

This is our first Fiori installation and are trying to do a prototype of the Launchpad.

The new Launchpad (/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html) comes up with the default theme, but with no tiles.

Here are  our installed Component and Product versions:


There is no error in SLG1 or the Gateway Client which is returning Status_Code 200 for ""/sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html?scope=CUST"

When tested in the browser, the activated services all run ok.

Really appreciate your help.

Thanks

Narayanan

AnjuJha
Explorer
0 Kudos

That is the issue and this is bug  . I have raised OSS message and SAP is working on it . I will let you know once they provide me solution.

Thanks,

Anju

former_member113639
Participant
0 Kudos

Implement the NOTE 2182485, 2205402 and 2232883. The NOTE 2232883 fixed the issue for us.

former_member572871
Discoverer
0 Kudos

Hi Muralidharan,

These notes are already implemented, we are at SP14.

We still need the correction that SAP is working on, as per ANju Jha's message.

Thanks

Narayanan

former_member113639
Participant
0 Kudos

Hi

we were in SP14 and even after applying the patches we had the issue we applied the NOTE and it fixed the issue.

With Regards

Murali

former_member113639
Participant
0 Kudos

We also have an issue on closer inspection we found that only the remote catalogs are loaded. Will need to investigate.

former_member113639
Participant
0 Kudos

Hi,

The issues are fixed. The issue was with the $filter in query was not working. When I removed this it worked. Below are the NOTES we applied to fix the issue.

2215030

2209229

2220743

1888970

2223470

2206795

2249157

2232883

2241188

2245413


Regards

Murali

AnjuJha
Explorer
0 Kudos

Issue is resolved for me . I have implemented the SAP notes suggested in the thread and clear the cache

Thanks,

Anju

former_member572871
Discoverer
0 Kudos

Thank you Murali and Anju,

Implementing the notes in your posts resolved the issue for us.

Thanks

Narayanan

Former Member
0 Kudos

why need so many notes, our basis guy will challenge me.

Answers (3)

Answers (3)

janosdezsi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,
if you have SAPUI5 Library 1.28.20 please make sure that you have at least SAPK-74015INSAPUI. (Refer to note 2236390).

BR, Janos

jayme_alonso
Participant
0 Kudos

I'm getting the same error here. Please advise if you found some workaround I've even tried to change the values in the javascript, add an fake item. It happens when he tries to deselect the previously selected Catalog. Since there are no catalogs visible, the error appears.

0 Kudos

Hi Jayme,

I havn't fixed it because our system is down when it upgrading. 

gill367
Active Contributor
0 Kudos

Hi Dongqiang;

It is difficult to guess the root cause of the error like this.

You can see the error logs and share the same.

please check the console of browser and NetWeaver Gateway error logs.

Also what is your SAPUI ADD on sp level.

if it is sp13. Please apply all the required sap notes also in the system.

Regards,

Sarbjeet Singh

0 Kudos

Hi Sarbjeet,

SAP_UI version is 74014.

I activated the GATEWAY log, it does not show an error.

Console has an error, but it's not the one while creating catalog:


2015-10-20 16:06:57 Call to success handler failed: Cannot read property 'length' of undefined - TypeError: Cannot read property 'length' of undefined

    at sap.ui.controller.onInit.that.oCatalogService.readCustomizingDefaultRequest.bIsLocalObj (https://ldcihrx.wdf.sap.corp:44377/sap/bc/ui5_ui5/sap/ARSRVC_UPB_ADMN/sap/ui2suite/admin/AdminPage.c...)

    at Object.sap.ui2.srvc.call (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js...)

    at q (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/~2015081…~/sap/ushell_abap/librar...)

    at eval (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/~20150811142400~/sap/ui/thirdpart...)

    at XMLHttpRequest.o.defaultHttpClient.request.p9 (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/~20150811142400~/sap/ui/thirdpart...)

    at s.E.dispatch (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js...)

    at XMLHttpRequest.X.handleEvent (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js...)

    at XMLHttpRequest.X.getEventHandler.h [as _fnHandler] (https://ldcihrx.wdf.sap.corp:44377/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js...) sap.ui2.srvc

gill367
Active Contributor
0 Kudos

Hi Dongqiang;

Could you please apply the required SAP notes for SP14 UI addon.

Below is the link for same.

https://scn.sap.com/docs/DOC-67966

Regards,

Sarbjeet Singh

0 Kudos

I will check with our system admin.

0 Kudos

I debugged the js.

'that.getSelectedCatalogIndex()' will get -1, since I doesn't have a catalog yet. And this index will be used to search a Catalog, then returned undefined. As a result, undefiend.$selected is undefined.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dongqiang,

Have you checked missing authorizations?

Does Fiori launchpad work fine?

Regards,

Masa / SAP Technology RIG

AnjuJha
Explorer
0 Kudos

Hi Masa,

I am getting similar error after upgrading system to SP13 and have SAP_ALL role and getting blank catalog in Fiori Designer and unable to load catalog from Fiori LaunchPad

Do you know why this error is coming ?

Thanks,

Anju

Message was edited by: Anju Jha