cancel
Showing results for 
Search instead for 
Did you mean: 

DUMP in CX_WD_CONTEXT - Could find attribute exception

Former Member
0 Kudos

Hello Experts,

We got dump while processing Recording Working Times in ESS at Portal level

This dump occurred only for one user and working fine for other users.

Please let me know what will be the solution for this dump.

**********************************************************************************************************************************

(*****Class CL_WDR_CONTEXT_NODE_INFO****)

IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE

    1 method if_wd_context_node_info~get_attribute .

    2   data:

    3                  rtti        type ref to cl_abap_typedescr.

    4   field-symbols: <attr_info> type wdr_context_attribute_info.

    5

    6   if me->attributes is initial.

    7     me->map_node_info( ).

    8   endif.

    9

   10   read table me->attributes->* into attribute_info with table key name = name.

   11   if sy-subrc <> 0.

   12     if me->_all_attributes_read = abap_false.

   13       _get_all_attributes( ).

   14       read table me->attributes->* into attribute_info with table key name = name.

   15       if sy-subrc <> 0.

   16         raise exception type cx_wd_context exporting textid = cx_wd_context=>attribute_not_f

   17       endif.

   18     else.

>>>>>       raise exception type cx_wd_context exporting textid = cx_wd_context=>attribute_not_fou

   20     endif.

   21   endif.

   22

   23   if attribute_info-rtti is initial.

   24     data: attr_ref type ref to wdr_context_attribute_info.

   25     attr_ref = me->_get_attribute_rtti(

   26         attr_name  = name

   27            ).

   28     if attr_ref is not bound.

   29       raise exception type cx_wd_context exporting textid = cx_wd_context=>no_valid_attribut

**********************************************************************************************************************************

Thanks in Advance,

Swetha.C

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

Hi,

What is the NAME of attribute in the short dump text? check whether the mapping is done correctly or not. If not try using Update Mapping on Context Node.

If you are creating attributes dynamically, check whether for the particular user the attributes are adding or not.

Regards,

Kiran

former_member222068
Active Participant
0 Kudos

Hi Swetha,

Check the roles assigned to the user. can you mention what is the component name.

Thanks & Regards,

Sankar Gelivi

ramakrishnappa
Active Contributor
0 Kudos

Hi Swetha,

As you have mentioned that this dump occurs only for a user. I think for that user the attributes list is prepared dynamically and added to context node. So, one of the attribute is not found in the given context.

I suggest you to set an EXTERNAL breakpoint at LINE 19 and run your application.

When the control reaches this line, please use the STANDARD tab of your debugging window, to find the call stack.

Now, click on a method of your component and find out what is missing

Hope this helps you.

Regards,

Rama