cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid index 1 when setting lead selection(WD - PIQ_STIC)

Former Member
0 Kudos

Hi All,

we have done pre,post-exit in WD - PIQ_STIC and its been transported to Quality server, recently due to DB refresh in Quality server, corresponding TRs has been re-imported in Quality server and node for the same has been activated in SICF too. But facing below mentioned errror when i am trying to execute the page in Quality server,

The URL http://servername/sap/bc/webdynpro/sap/piq_stic was not called due to an error. 
    
Note : 
*The following error text was processed in the system ECV : Invalid index 1 when setting lead selection; context node: COMPONENTCONTROLLER.1.VIEW_SWITCH* 
The error occurred on the application server issvteccdb_ECV_01 and in the work process 0 . 
The termination type was: RABAX_STATE 
The ABAP call stack was: 
Method: IF_WD_CONTEXT_NODE~SET_LEAD_SELECTION_INDEX of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: INIT_STIC_MODEL of program /1BCWDY/AL6JK4YUCKLOP9X3UZ7V==CP
Method: IF_COMPONENTCONTROLLER~INIT_STIC_MODEL of program /1BCWDY/AL6JK4YUCKLOP9X3UZ7V==CP
Method: HANDLEDEFAULT of program /1BCWDY/AL6JK4YUCKLOP9X3UZ7V==CP
Method: HANDLEDEFAULT of program /1BCWDY/AL6JK4YUCKLOP9X3UZ7V==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/AL6JK4YUCKLOP9X3UZ7V==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP

Please let me know how to resolve the above issue.

Thanks and Regards

Bhaskar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bhaskar,

I am also facing this problem.

could you please guide me in how you solved the isssue?

former_member199125
Active Contributor
0 Kudos

Hi bhaskar,

Just check the error in ST22, and before the error line code you will find arrow like >>>>

So analyze the error or post the same here

Regards

Srinivas

Former Member
0 Kudos

Hi Srinivas,

Pls find the source code extract(ST22)

1 method IF_WD_CONTEXT_NODE~SET_LEAD_SELECTION_INDEX .

2

3 if me->is_finalized = abap_true.

4 me->_temp_text = me->if_wd_context_node~get_path( ).

5 raise exception type cx_wd_context exporting textid = cx_wd_context=>finalized node_name

6 endif.

7

8 * check whether elements are supllied or not

9 if me->elements_supplied = ABAP_FALSE.

10 me->supply_elements( ).

11 endif.

12

13 if index > lines( collection ) or index < if_Wd_context_Node~No_Selection.

14 tempText = me->if_wd_context_node~get_path( ).

>>>> raise exception type cx_wd_context exporting

16 textid = cx_wd_context=>invalid_lead_selection_index

17 integer = index

18 node_name = tempText.

19 endif.

20

21 me->_set_lead_selection( index ).

22

23 endmethod.

Thanks and Regards

Bhaskar

brenton_ocallaghan
Active Participant
0 Kudos

Hi Bhaskar,

Have you checked that there is data being supplied to the node? If it was trying to select index 1 and there was no index 1 to select you might get an error like this?

Cheers,

Brenton.

former_member199125
Active Contributor
0 Kudos

In your view, is there any field values depends on lead selection of any node? If not try like, remove initialize lead selection property of node and check again.

Regards

Srinivas

former_member188433
Participant
0 Kudos

Hello Bhaskar - we face a similar issue in our ERP system.  The code extract is exactly the same.  I know it was some years ago, but do you happen to remember how your issue was resolved?

Best Regards - Jeff