Cognos Analytics

 View Only
Expand all | Collapse all

Trying to Sum a column, get error "TypeError: Cannot read property 'getAttribute' of null at Object._PUK._ZG2 ...

  • 1.  Trying to Sum a column, get error "TypeError: Cannot read property 'getAttribute' of null at Object._PUK._ZG2 ...

    Posted Tue March 16, 2021 11:35 AM
    Hi all,
        I am trying to sum a numerical column but I get error "TypeError: Cannot read property 'getAttribute' of null at Object._PUK._ZG2 (https://smartreportsv2.eclinicalos.com/bi/pat/rsstartupblock_6.js:15:30368) and then additional "at Object ..".

    The column data is numerical, though perhaps I need to type it?  Here is the calculation used for the column data:
    Total (case when [C].[KPI_EDC].[sa_34276].[kit] = 'Follow-up' then 1 else 0 end)

    Any help would be greatly appreciated.

    ------------------------------
    Jim Denton
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Trying to Sum a column, get error "TypeError: Cannot read property 'getAttribute' of null at Object._PUK._ZG2 ...

    Posted Wed March 17, 2021 08:28 AM
    I get the same error in regular list reports with newly-created columns in a very similar fashion to your case expression. Have never figured out how to overcome so any solutions from others would be greatly appreciated! Which version are you running? I'm on 11.1.4 with plans to upgrade this year.

    ------------------------------
    Victoria Ratkos
    ------------------------------



  • 3.  RE: Trying to Sum a column, get error "TypeError: Cannot read property 'getAttribute' of null at Object._PUK._ZG2 ...

    Posted Wed March 17, 2021 09:16 AM
    Hi Jim,
    That seems to be a bug.
    Please log a bug with IBM Cognos customer support.
    // Henk

    ------------------------------
    HENK CAZEMIER
    ------------------------------