IBM Support

PH00312: PROMPT MACROS CAUSE QUERY SERVICE INTERNAL ERRORS BECAUSE NOT PROPERLY HANDLED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as suggestion for future release.

Error description

  • Seen for Dashboards while reports work.
    
    The following error is shown in the user interface:
    User interface shows:
    Query Service internal error has occurred.
    
    XQE log documents:
    Caught error in the Query Service: XQE-QTE-0008 The query
    contains an unresolved parameter(s)
    
    Background:
    The Framework Manager package used contains queries with prompt
    macros to dynamically define the source, for example which view
    or table to select (having same metadata).
    Sample select:
    SELECT * FROM
    [my_database].PRODUCT_#prompt('mySelection','token','EN')#
    
    Another sample use the macro to select the language relevant
    column by replacing the language suffix (here EN, DE etc.) by a
    macro expression.
    Sample SQL:
    SELECT
     ORDER_METHOD.ORDER_METHOD_CODE,
     ORDER_METHOD.ORDER_METHOD_#prompt('myLanguage','token','EN')#
    FROM ...
    

Local fix

  • Where possible, do not use macros for the time being.
    Or include the prompt subject in the deployment/ package to
    allow access to metadata information.
    
    Or (working in 11.0.8, but no more in 11.0.9), do not use macros
    on database objects (import layer),
    implement them on model query subjects (next modelling
    layer(s)) or use a Parameter Map and/or a prompt macro to select
    one of the Parameter Map Keys.
    

Problem summary

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH00312

  • Reported component name

    COG DASHBOARDS

  • Reported component ID

    5724W12DB

  • Reported release

    B09

  • Status

    CLOSED SUG

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-07-10

  • Closed date

    2018-10-03

  • Last modified date

    2018-10-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B09","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
11 November 2022