Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
Expand all | Collapse all

XQE-PLN-0026 Found unsupported IIF function arguments

  • 1.  XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Tue September 01, 2020 09:45 AM
    Hi,

    After upgrading from 11.1.3 to 11.1.7 some of our reports and also some measures in our dynamic cubes stopped working. I have found the cause of the problem to be our CASE WHEN statements. After changing them to IF THEN ELSE it works. But in some cases when there are many possible outcomes it is much easier to use CASE WHEN so my question is why this happens?

    Has anyone else experienced the same problem?

    Here is an example from the dynamic cube startup log:
    <![CDATA[XQE-ROL-0095 The definition for the calculated member 'Share' is not valid. It has been removed from the hierarchy [Measures].XQE-PLN-0026 Found unsupported IIF function arguments.

    BR,
    David

    ------------------------------
    David
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Mon November 30, 2020 09:57 AM
    Edited by System Admin Fri January 20, 2023 04:48 PM

    Hi David,

    we have the same problem with an DMR-Model after upgrading from 11.1.5 to 11.1.7. Today we have installed the FixPack 1 but with no result - the error is still the same.

    Did you find a solution?

    BR,

    Jens



    ------------------------------
    Jens Tüselmann
    ------------------------------



  • 3.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Mon November 30, 2020 10:20 AM

    No, we never did and have not tried after that either. Strange that this issue hasn't got any attention. Perhaps you should contact support if you really need it to be solved.

    Br,
    David



    ------------------------------
    David Kristensson
    ------------------------------



  • 4.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Mon November 30, 2020 01:15 PM
    Hi David,
    I'm not sure if this is applicable for dynamic cubes, but I do know that the case statement is a relational expression.
    So you are not supposed to use it in a dimensional model.

    ------------------------------
    Thomas van der Meer
    ------------------------------



  • 5.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Tue December 01, 2020 05:35 AM
    Edited by System Admin Fri January 20, 2023 04:27 PM

    Hi Thomas,

    I don't believe that a case statement is not supported by an DMR model in general. I didn't find anything about that in the documentation (especially Redbooks, Cookbook etc.).

    I have checked one of our reports with several case statements in a query subject and I have determined not every case statement produces the error message. Only if the case statement contains a calculation with more than one operator in the else path for example "else 12+2*2". But it is not realy clear because the behavior is different in different case statements and it depends on the syntax of the whole case statement.
    So, I think this is a bug and we will try to contact the support.

    BR

    Jens



    ------------------------------
    Jens Tüselmann
    ------------------------------



  • 6.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Tue December 01, 2020 11:04 AM
    Hi Jens,

    Believe me it is a relational expression. The main problem here is that you are trying to use SQL based logic (the CASE statement) against a dimensional data source (which doesn't understand SQL). There is nothing equivalent to a CASE statement in MDX, except using if, then, else.
    You will not get an syntax error, but you can get unexpected behaviour when mixing dimensional and relational expressions in a report. I have seen for example reports not showing data or totals in crosstabs when using case statements in query items. Replacing this with if, then, else solved these issues.

    If you are using a DQM package, you could use the macro case statement instead.

    ------------------------------
    Thomas van der Meer
    ------------------------------



  • 7.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Wed December 02, 2020 02:52 AM
    Hi,

    Yes, we've seen the same problem with many customers. After upgrading from 11.1.5  to 11.1.6 or 11.1.7 many reports using CASE WHEN statements stopped working and returning the XQE-PLN-0026 error message. So far we've been able to fix all the reports changing the syntax and replacing with IF THEN syntax where applicable.

    Traditionally Cognos has been very good in allowing a bit of mix and matching SQL and MDX functions but now something has definitely changed in the way how Cognos translates the CASE WHEN in the query engine after R5.

    ------------------------------
    Jaakko Kähärä
    ------------------------------



  • 8.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Wed December 02, 2020 12:23 PM


    There are 2 APARs in the process of being fixed to address this bug.

    PH31567 USE OF CASE/WHEN WITH A TM1/PA CUBE CAUSES XQE-PLN-0026 FOUND UNSUPPORTED IIF FUNCTION ARGUMENTS.
    PH30758 AFTER UPGRADING FROM 11.0.13 TO 11.1.7FP1 REPORT FAILS WITH XQE-PLN-0020
    Please refer to these in your follow up with Customer support.

    // Henk




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



  • 9.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Wed December 02, 2020 01:58 PM
    Oh, thank's a lot for the information about the open APARs

    ------------------------------
    Jens Tüselmann
    ------------------------------



  • 10.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Wed December 02, 2020 06:07 PM

    In the basic scenario, DQM should attempt to rewrite CASE into a form that an OLAP system may accept.

    Of course, subject to what you may have written, not always etc.

    As Henk suggested, best to contact support re items he ref'd etc.

    Similarly, for some customers they may run into cases such as described in https://supportcontent.ibm.com/support/pages/node/6352905



    ------------------------------
    NIGEL CAMPBELL
    ------------------------------



  • 11.  RE: XQE-PLN-0026 Found unsupported IIF function arguments

    Posted Thu December 17, 2020 10:47 AM

    This got fixed in 11.1.7 FP2.

    https://www.ibm.com/support/pages/node/6370703

    https://www.ibm.com/support/pages/ibm-cognos-analytics-11x-fix-lists



    ------------------------------
    Rajesh Kumar Vanam
    ------------------------------